Skip to content

Commit 253194a

Browse files
committed
Add logging
1 parent 74cb6dc commit 253194a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Sources/_InternalTestSupport/misc.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public func testWithTemporaryDirectory<Result>(
100100
return try await withTemporaryDirectory(prefix: "spm-tests-\(cleanedFunction)") { tmpDirPath in
101101
defer {
102102
let cwd = FileManager.default.currentDirectoryPath
103-
print("FMCWD: \(cwd)")
103+
print("TWT-FMCWD: \(cwd)")
104104
// Unblock and remove the tmp dir on deinit.
105105
try? localFileSystem.chmod(.userWritable, path: tmpDirPath, options: [.recursive])
106106
try? localFileSystem.removeFileTree(tmpDirPath)
@@ -133,6 +133,8 @@ public func testWithTemporaryDirectory<Result>(
133133

134134
defer {
135135
// Unblock and remove the tmp dir on deinit.
136+
let cwd = FileManager.default.currentDirectoryPath
137+
print("FXT-FMCWD: \(cwd)")
136138
try? localFileSystem.chmod(.userWritable, path: tmpDirPath, options: [.recursive])
137139
try? localFileSystem.removeFileTree(tmpDirPath)
138140
}
@@ -265,6 +267,8 @@ public enum TestError: Error {
265267
defer {
266268
if removeFixturePathOnDeinit {
267269
// Unblock and remove the tmp dir on deinit.
270+
let cwd = FileManager.default.currentDirectoryPath
271+
print("FIX-FMCWD: \(cwd)")
268272
try? localFileSystem.chmod(.userWritable, path: tmpDirPath, options: [.recursive])
269273
try? localFileSystem.removeFileTree(tmpDirPath)
270274
}

0 commit comments

Comments
 (0)