Skip to content

Commit 153bff8

Browse files
committed
add check for linux test product name
1 parent a9359f9 commit 153bff8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Tests/Functional/TestMiscellaneous.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,14 @@ class MiscellaneousTestCase: XCTestCase {
307307
func testModuleWithTests() {
308308
fixture(name: "SwiftTesting/SingleTarget", file: #file, line: #line) { prefix in
309309
XCTAssertBuilds(prefix)
310-
XCTAssertDirectoryExists(prefix, ".build", "debug", "Package.xctest")
311310
XCTAssertFileExists(prefix, ".build", "debug", "Foo.swiftmodule")
311+
312+
#if os(OSX)
313+
XCTAssertDirectoryExists(prefix, ".build", "debug", "Package.xctest")
314+
#else
315+
XCTAssertDirectoryExists(prefix, ".build", "debug", "test-Package")
316+
#endif
317+
312318
}
313319
}
314320
}

0 commit comments

Comments
 (0)