Skip to content

Commit 52a0975

Browse files
authored
Merge pull request #25186 from drodriguez/windows-fix-test-unexisting
[windows] Fix module-cache-bad-version.swift in Windows.
2 parents 0f45437 + 86eddd4 commit 52a0975

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
//
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
22-
// RUN: test ! -f %t/modulecache/LeafModule-*.swiftmodule
22+
// 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)"
2324
// RUN: %FileCheck %s -check-prefix=CHECK-ERR <%t/err.txt
2425
// CHECK-ERR: {{error: unsupported version of module interface '.*[/\\]LeafModule.swiftinterface': '9999.999'}}
2526
// CHECK-ERR: error: no such module 'LeafModule

0 commit comments

Comments
 (0)