Skip to content

Commit 499e422

Browse files
committed
test: fix the broken test
swiftlang/swift-driver#1741 fixed a bug in the swift-driver which exposed a bug in this test. The use of `%FileCheck` is a problem as that sanitises the output substituting `BUILD_DIR` for the build directory that is now properly computed. Because `PATH` is being configured to an invalid path the actual driver is not found and the test fails.
1 parent 5945a89 commit 499e422

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/Interpreter/shebang-env.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
// RUN: cat %s >> %t.shebang.swift
55
// RUN: chmod u+x %t.shebang.swift
66

7-
// RUN: env PATH=$(dirname %swift_driver_plain) %t.shebang.swift | %FileCheck -check-prefix=NONE %s
8-
// RUN: env PATH=$(dirname %swift_driver_plain) %t.shebang.swift a b c | %FileCheck -check-prefix=THREE-ARGS %s
7+
// RUN: env PATH=$(dirname %swift_driver_plain) %t.shebang.swift | %raw-FileCheck -check-prefix=NONE %s
8+
// RUN: env PATH=$(dirname %swift_driver_plain) %t.shebang.swift a b c | %raw-FileCheck -check-prefix=THREE-ARGS %s
99

1010
// REQUIRES: swift_interpreter
1111

0 commit comments

Comments
 (0)