mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
These two tests were changing directories into the temporary, never changing out of there, and then recreating the temporary, which left the rest of the test executing in a non-existing directory. Modify those tests to change out to the previous directory and avoid executing any command in a non-existing directory.
12 lines
436 B
Swift
12 lines
436 B
Swift
// RUN: %empty-directory(%t)
|
|
// Default output:
|
|
// RUN: pushd %t
|
|
// RUN: %target-swift-frontend -emit-module -module-name foo -whole-module-optimization %s
|
|
// RUN: test -f %t/foo.swiftmodule
|
|
// RUN: popd
|
|
|
|
// RUN: %empty-directory(%t)
|
|
// RUN: %target-swift-frontend -emit-module -module-name foo -emit-module-path %t/bar.swiftmodule -whole-module-optimization %s
|
|
// RUN: test -f %t/bar.swiftmodule
|
|
// RUN: not test -f %t/foo.swiftmodule
|