Skip to content

Commit deed57c

Browse files
authored
Merge pull request #64721 from tristanlabelle/fix-lit-python-test-failure-backslash
Fix test failure on Windows due to path separators being treated as escapes
2 parents 54dfc7f + 8155f07 commit deed57c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/ModuleInterface/ModuleCache/module-cache-bad-version.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
// RUN: not %target-swift-frontend -I %t -module-cache-path %t/modulecache -emit-module -o %t/TestModule.swiftmodule -module-name TestModule %s >%t/err.txt 2>&1
2121
// RUN: test ! -f %t/TestModule.swiftmodule
2222
// This avoids a problem in Windows with test ! -f 'foo*' for a file that doesn't exist
23-
// RUN: %{python} -c "import sys; import glob; sys.exit(len(glob.glob('%t/modulecache/LeafModule-*.swiftmodule')) != 0)"
23+
// RUN: %{python} -c "import sys; import glob; sys.exit(len(glob.glob(r'%t/modulecache/LeafModule-*.swiftmodule')) != 0)"
2424
// RUN: %FileCheck %s -check-prefix=CHECK-ERR <%t/err.txt
2525
// CHECK-ERR: {{error: unsupported version of module interface '.*[/\\]LeafModule.swiftinterface': '9999.999'}}
2626
// CHECK-ERR: error: no such module 'LeafModule

0 commit comments

Comments
 (0)