Enable strict concurrency check on unit tests

This commit is contained in:
1024jp 2024-06-17 15:27:24 +09:00
parent f9887768ca
commit 0583122439
2 changed files with 7 additions and 3 deletions

View File

@ -3648,6 +3648,7 @@
MARKETING_VERSION = "4.9.0-alpha";
PRODUCT_BUNDLE_IDENTIFIER = com.coteditor.CotEditor;
PRODUCT_NAME = CotEditor;
SWIFT_STRICT_CONCURRENCY = targeted;
};
name = Debug;
};
@ -3665,6 +3666,7 @@
MARKETING_VERSION = "4.9.0-alpha";
PRODUCT_BUNDLE_IDENTIFIER = com.coteditor.CotEditor;
PRODUCT_NAME = CotEditor;
SWIFT_STRICT_CONCURRENCY = targeted;
};
name = Release;
};
@ -3707,6 +3709,7 @@
PRODUCT_BUNDLE_IDENTIFIER = com.coteditor.CotEditor;
PRODUCT_NAME = CotEditor;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) SPARKLE";
SWIFT_STRICT_CONCURRENCY = targeted;
};
name = Debug;
};
@ -3725,6 +3728,7 @@
PRODUCT_BUNDLE_IDENTIFIER = com.coteditor.CotEditor;
PRODUCT_NAME = CotEditor;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) SPARKLE";
SWIFT_STRICT_CONCURRENCY = targeted;
};
name = Release;
};
@ -3789,7 +3793,7 @@
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_STRICT_CONCURRENCY = targeted;
SWIFT_STRICT_CONCURRENCY = complete;
SWIFT_VERSION = 5.0;
};
name = Debug;
@ -3852,7 +3856,7 @@
SDKROOT = macosx;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_STRICT_CONCURRENCY = targeted;
SWIFT_STRICT_CONCURRENCY = complete;
SWIFT_VERSION = 5.0;
};
name = Release;

View File

@ -30,7 +30,7 @@ import Combine
import Yams
@testable import CotEditor
final class SyntaxTests {
actor SyntaxTests {
private var syntaxes: [String: Syntax] = [:]