Skip to content

Commit 4a3f755

Browse files
committed
Even shorter Windows tmp directory paths
1 parent 4193eb6 commit 4a3f755

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/_InternalTestSupport/misc.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public func testWithTemporaryDirectory<Result>(
100100

101101
// Use shorter prefix on Windows to avoid MAX_PATH issues
102102
#if os(Windows)
103-
let prefix = "spm-\(abs(cleanedFunction.hashValue))"
103+
let prefix = "spm-\(String(abs(cleanedFunction.hashValue)).prefix(5))"
104104
#else
105105
let prefix = "spm-tests-\(cleanedFunction)"
106106
#endif

0 commit comments

Comments
 (0)