Skip to content

Commit ccaabd9

Browse files
committed
[Testing QoI] Make the Windows link job test more robust
Create a fake install location to ensure that the path to `clang++` is not hard coded.
1 parent f602a75 commit ccaabd9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/Driver/windows-link-job.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
// RUN: env PATH= %swiftc_driver_plain -target x86_64-unknown-windows-msvc -### -module-name link -emit-library %s 2>&1 | %FileCheck %s
2-
// CHECK: clang++
1+
// RUN: %empty-directory(%t/DISTINCTIVE-WINDOWS-PATH/usr/bin)
2+
// RUN: %hardlink-or-copy(from: %swift_driver_plain, to: %t/DISTINCTIVE-WINDOWS-PATH/usr/bin/swiftc)
3+
// RUN: env PATH= %t/DISTINCTIVE-WINDOWS-PATH/usr/bin/swiftc -target x86_64-unknown-windows-msvc -### -module-name link -emit-library %s 2>&1 | %FileCheck %s
4+
// CHECK: {{^}}clang++

0 commit comments

Comments
 (0)