Fix tests on Linux

This commit is contained in:
Max Howell
2019-01-17 18:23:22 -05:00
parent cac06d89fb
commit b4c92f86dc
6 changed files with 29 additions and 14 deletions

View File

@@ -37,12 +37,12 @@ class PathTests: XCTestCase {
func testExists() {
XCTAssert(Path.root.exists)
XCTAssert((Path.root/"Users").exists)
XCTAssert((Path.root/"bin").exists)
}
func testIsDirectory() {
XCTAssert(Path.root.isDirectory)
XCTAssert((Path.root/"Users").isDirectory)
XCTAssert((Path.root/"bin").isDirectory)
}
func testMktemp() throws {

View File

@@ -15,7 +15,7 @@ extension PathTests {
]
}
#if !os(macOS)
#if os(Linux)
public func __allTests() -> [XCTestCaseEntry] {
return [
testCase(PathTests.__allTests),