Skip to content

Commit 2478993

Browse files
authored
[test] Avoid xcrun in this particular test. (#3351)
It seems to be messing with environment variables. rdar://problem/26981561
1 parent 71882c6 commit 2478993

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/Driver/temp-files.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@
99
// EMPTY-NOT: .{{(o|swiftmodule|swiftdoc)}}
1010

1111
// RUN: rm -rf %t && mkdir -p %t/tmp/ && touch %t/tmp/dummy
12-
// RUN: env TMPDIR=%t/tmp/ %target-swiftc_driver -emit-executable %s -o %t/main2 -emit-module-path %t/main2.swiftmodule
12+
// RUN: env TMPDIR=%t/tmp/ %swiftc_driver -target %target-triple -sdk %sdk -module-cache-path %t -emit-executable %s -o %t/main2 -emit-module-path %t/main2.swiftmodule
1313
// RUN: ls %t/main2
1414
// RUN: ls %t/main2.swiftmodule
1515
// RUN: ls %t/tmp | FileCheck -check-prefix=EMPTY %s
1616

1717
// RUN: rm -rf %t && mkdir -p %t/tmp/ && touch %t/tmp/dummy
18-
// RUN: env TMPDIR=%t/tmp/ %target-swiftc_driver -emit-executable %s -o %t/main3 -g
18+
// RUN: env TMPDIR=%t/tmp/ %swiftc_driver -target %target-triple -sdk %sdk -module-cache-path %t -emit-executable %s -o %t/main3 -g
1919
// RUN: ls %t/main3
2020
// RUN: ls %t/tmp | FileCheck -check-prefix=EMPTY %s
2121

2222
// RUN: rm -rf %t && mkdir -p %t/tmp/ && touch %t/tmp/dummy
23-
// RUN: env TMPDIR=%t/tmp/ %target-swiftc_driver -emit-executable %s -o %t/main4 -emit-module-path %t/main4.swiftmodule -g
23+
// RUN: env TMPDIR=%t/tmp/ %swiftc_driver -target %target-triple -sdk %sdk -module-cache-path %t -emit-executable %s -o %t/main4 -emit-module-path %t/main4.swiftmodule -g
2424
// RUN: ls %t/main4
2525
// RUN: ls %t/main4.swiftmodule
2626
// RUN: ls %t | FileCheck -check-prefix=MAIN4-%target-object-format %s
@@ -31,7 +31,7 @@
3131

3232
// RUN: rm -rf %t && mkdir -p %t/tmp/ && touch %t/tmp/dummy
3333
// RUN: echo "{\"%s\": {\"object\": \"%t/main5.o\"}}" > %t.json
34-
// RUN: env TMPDIR=%t/tmp/ %target-swiftc_driver -emit-executable %s -o %t/main5 -output-file-map %t.json -g
34+
// RUN: env TMPDIR=%t/tmp/ %swiftc_driver -target %target-triple -sdk %sdk -module-cache-path %t -emit-executable %s -o %t/main5 -output-file-map %t.json -g
3535
// RUN: ls %t/main5
3636
// RUN: ls %t/main5.o
3737
// RUN: ls %t | FileCheck -check-prefix=MAIN5-%target-object-format %s
@@ -41,7 +41,7 @@
4141
// MAIN5-elf-NOT: .dSYM
4242

4343
// RUN: rm -rf %t && mkdir -p %t/tmp/ && touch %t/tmp/dummy
44-
// RUN: env TMPDIR=%t/tmp/ %target-swiftc_driver -emit-executable %s -o %t/main6 -g -save-temps
44+
// RUN: env TMPDIR=%t/tmp/ %swiftc_driver -target %target-triple -sdk %sdk -module-cache-path %t -emit-executable %s -o %t/main6 -g -save-temps
4545
// RUN: ls %t/main6
4646
// RUN: ls %t | FileCheck -check-prefix=MAIN6-%target-object-format %s
4747
// RUN: ls %t/tmp | FileCheck -check-prefix=SAVE-TEMPS %s

0 commit comments

Comments
 (0)