Skip to content

Commit 2b97e9d

Browse files
committed
Print checkpoints in testCreateIndexStoreAndDBDirs
1 parent 3121fcc commit 2b97e9d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Tests/IndexStoreDBTests/IndexStoreDBTests.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,16 +64,22 @@ final class IndexStoreDBTests: XCTestCase {
6464
}
6565

6666
func testCreateIndexStoreAndDBDirs() {
67+
fputs("Start\n", stderr)
68+
// FileHandle.
6769
let toolchain = TibsToolchain.testDefault
6870
let libIndexStore = try! IndexStoreLibrary(dylibPath: toolchain.libIndexStore.path)
6971

72+
fputs("Checkpoint 1\n", stderr)
7073
// Normal - create the missing directories.
7174
XCTAssertNoThrow(try IndexStoreDB(storePath: tmp + "/store", databasePath: tmp + "/db", library: libIndexStore))
7275

76+
fputs("Checkpoint 2\n", stderr)
7377
// Readonly - do not create.
7478
checkThrows(.create("failed opening database")) {
7579
_ = try IndexStoreDB(storePath: tmp + "/store", databasePath: tmp + "/db-readonly", library: libIndexStore, readonly: true)
7680
}
81+
82+
fputs("Checkpoint 3\n", stderr)
7783
// Readonly - do not create.
7884
checkThrows(.create("index store path does not exist")) {
7985
_ = try IndexStoreDB(storePath: tmp + "/store-readonly", databasePath: tmp + "/db", library: libIndexStore, readonly: true)

0 commit comments

Comments
 (0)