Skip to content

Commit bc84c29

Browse files
committed
test: adjust the test use to ls instead of find
Rely on the `ls` behaviour of returning a non-zero if there is no matching pattern. This should help make the test pass on Windows and the other targets.
1 parent a4fcc48 commit bc84c29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/Index/index_swift_only_systemmodule.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ print(someFunc())
8989
// RUN: %s
9090
//
9191
// --- Ensure module cache is populated.
92-
// RUN: find %t/modulecache -maxdepth 1 -name 'SomeModule-*.swiftmodule' | grep .
92+
// RUN: ls %t/modulecache/SomeModule-*.swiftmodule
9393
//
9494
// --- Built with indexing
9595
// RUN: %target-swift-frontend \

0 commit comments

Comments
 (0)