|
19 | 19 | ] |
20 | 20 | } |
21 | 21 |
|
22 | | - @Test( |
23 | | - .disabled("unable to run spectest on Android due to missing files on emulator", platforms: [.android]), |
24 | | - arguments: try SpectestDiscovery(path: SpectestTests.testPaths).discover() |
25 | | - ) |
26 | | - func run(test: TestCase) throws { |
27 | | - let defaultConfig = EngineConfiguration() |
28 | | - let runner = try SpectestRunner(configuration: defaultConfig) |
29 | | - try runner.run(test: test, reporter: NullSpectestProgressReporter()) |
30 | | - } |
| 22 | + #if !os(Android) |
| 23 | + @Test( |
| 24 | + .disabled("unable to run spectest on Android due to missing files on emulator", platforms: [.android]), |
| 25 | + arguments: try SpectestDiscovery(path: SpectestTests.testPaths).discover() |
| 26 | + ) |
| 27 | + func run(test: TestCase) throws { |
| 28 | + let defaultConfig = EngineConfiguration() |
| 29 | + let runner = try SpectestRunner(configuration: defaultConfig) |
| 30 | + try runner.run(test: test, reporter: NullSpectestProgressReporter()) |
| 31 | + } |
31 | 32 |
|
32 | | - @Test( |
33 | | - .disabled("unable to run spectest on Android due to missing files on emulator", platforms: [.android]), |
34 | | - arguments: try SpectestDiscovery(path: SpectestTests.testPaths).discover() |
35 | | - ) |
36 | | - func runWithTokenThreading(test: TestCase) throws { |
37 | | - let defaultConfig = EngineConfiguration() |
38 | | - guard defaultConfig.threadingModel != .token else { return } |
39 | | - // Sanity check that non-default threading models work. |
40 | | - let runner = try SpectestRunner(configuration: defaultConfig) |
41 | | - try runner.run(test: test, reporter: NullSpectestProgressReporter()) |
42 | | - } |
| 33 | + @Test( |
| 34 | + .disabled("unable to run spectest on Android due to missing files on emulator", platforms: [.android]), |
| 35 | + arguments: try SpectestDiscovery(path: SpectestTests.testPaths).discover() |
| 36 | + ) |
| 37 | + func runWithTokenThreading(test: TestCase) throws { |
| 38 | + let defaultConfig = EngineConfiguration() |
| 39 | + guard defaultConfig.threadingModel != .token else { return } |
| 40 | + // Sanity check that non-default threading models work. |
| 41 | + let runner = try SpectestRunner(configuration: defaultConfig) |
| 42 | + try runner.run(test: test, reporter: NullSpectestProgressReporter()) |
| 43 | + } |
| 44 | + #endif |
43 | 45 | } |
44 | 46 | #endif |
0 commit comments