bugfixes, better MusicXML support and 1.1.0
This commit is contained in:
+6
-6
@@ -1,4 +1,4 @@
|
||||
// Phase201IsolationGuardTests.swift
|
||||
// ActorIsolationGuardTests.swift
|
||||
// Lyrebird
|
||||
//
|
||||
// Copyright (c) 2026 Joshua Parmenter / realizedsound
|
||||
@@ -8,7 +8,7 @@ import Testing
|
||||
import Foundation
|
||||
@testable import LyrebirdSynth
|
||||
|
||||
/// Phase 201/202 isolation guards.
|
||||
/// Main-actor isolation guards.
|
||||
///
|
||||
/// These tests protect the main-actor isolation model against silent regression:
|
||||
///
|
||||
@@ -23,8 +23,8 @@ import Foundation
|
||||
/// machinery (`MainActor`, `assumeIsolated`, `DispatchQueue`, `Task {`). Under the
|
||||
/// Swift 6 language mode such a call would compile silently but violate the
|
||||
/// `nonisolated` RT render contract. This is a source-text lint.
|
||||
@Suite("Phase 201/202 isolation guards")
|
||||
struct Phase201IsolationGuardTests {
|
||||
@Suite("Actor isolation guards")
|
||||
struct ActorIsolationGuardTests {
|
||||
|
||||
// MARK: - Guard A: off-main bridge
|
||||
|
||||
@@ -78,7 +78,7 @@ struct Phase201IsolationGuardTests {
|
||||
override func build() { onBuild() }
|
||||
}
|
||||
let ctx: LyrebirdMessageContext = LyrebirdMessageContext(nrtEngine: engine)
|
||||
// Synth construction is `@MainActor` (Phase 201); build it on main, then add from
|
||||
// Synth construction is `@MainActor`; build it on main, then add from
|
||||
// a background thread to exercise the off-main bridge hop.
|
||||
let synth: ProbeSynth = await MainActor.run { ProbeSynth { builtCount.increment() } }
|
||||
let done: DispatchSemaphore = DispatchSemaphore(value: 0)
|
||||
@@ -148,7 +148,7 @@ struct Phase201IsolationGuardTests {
|
||||
}
|
||||
|
||||
/// Repo root, derived from this file's path:
|
||||
/// `<root>/Tests/LyrebirdTests/Concurrency/Phase201IsolationGuardTests.swift`.
|
||||
/// `<root>/Tests/LyrebirdTests/Concurrency/ActorIsolationGuardTests.swift`.
|
||||
private static var repoRoot: URL {
|
||||
URL(fileURLWithPath: #filePath)
|
||||
.deletingLastPathComponent() // Concurrency/
|
||||
Reference in New Issue
Block a user