Skip to content

Commit da4b71d

Browse files
committed
add check for linux test product name
1 parent 44c84a7 commit da4b71d

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
@@ -346,8 +346,14 @@ class MiscellaneousTestCase: XCTestCase {
346346
func testModuleWithTests() {
347347
fixture(name: "SwiftTesting/SingleTarget", file: #file, line: #line) { prefix in
348348
XCTAssertBuilds(prefix)
349-
XCTAssertDirectoryExists(prefix, ".build", "debug", "Package.xctest")
350349
XCTAssertFileExists(prefix, ".build", "debug", "Foo.swiftmodule")
350+
351+
#if os(OSX)
352+
XCTAssertDirectoryExists(prefix, ".build", "debug", "Package.xctest")
353+
#else
354+
XCTAssertDirectoryExists(prefix, ".build", "debug", "test-Package")
355+
#endif
356+
351357
}
352358
}
353359
}

0 commit comments

Comments
 (0)