Files
swift-mirror/test/Frontend/emit-module-path-wmo.swift
Daniel Rodríguez Troitiño 1566eccbad [test] Take care of change out of deleted directories (#65664)
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.
2023-05-05 14:43:15 -07:00

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