Skip to content

Commit 98e3cf5

Browse files
committed
Use a Path that is Also Invalid on Windows in testErrors
Windows is able to create the directory `/nope` since a leading `/` indications a drive relative path. Instead, use `/nope:` which is invalid both on POSIX and Windows.
1 parent c045a1f commit 98e3cf5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/IndexStoreDBTests/IndexStoreDBTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ final class IndexStoreDBTests: XCTestCase {
4646

4747
func testErrors() {
4848
checkThrows(.create("failed creating directory")) {
49-
_ = try IndexStoreDB(storePath: "/nope", databasePath: "/nope", library: nil)
49+
_ = try IndexStoreDB(storePath: "/nope:", databasePath: "/nope:", library: nil)
5050
}
5151

5252
checkThrows(.create("could not determine indexstore library")) {

0 commit comments

Comments
 (0)