Skip to content

Commit 144d78c

Browse files
authored
[test] Make sure directory exists before putting a module cache in it (#15197)
This test uses %swiftc_driver_plain instead of %swiftc_driver or %target-build-swift because it's testing what the driver does when invoked with no -swift-version argument, but that means we have to manually set up things like a module cache path. This will then fail if it's the first Driver test run in a clean build directory (because of where lit.py decides to put temporary files). rdar://problem/38354843
1 parent 45b25b9 commit 144d78c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/Driver/swift-version-default.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// RUN: %empty-directory(%t)
12
// RUN: %swiftc_driver_plain -target %target-triple -module-cache-path %t -typecheck -Xfrontend -verify %s
23

34
// This test should be updated to match the expected default Swift version

0 commit comments

Comments
 (0)