Skip to content

Commit 622d52d

Browse files
authored
clang: Only prevent hip driver test from running on windows (#167623)
1 parent acb798e commit 622d52d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
// REQUIRES: x86-registered-target
22
// REQUIRES: amdgpu-registered-target
3-
// REQUIRES: system-linux
3+
// UNSUPPORTED: system-windows
44

55
// Check no temporary files or directores are left after compilation.
66
// RUN: rm -rf %t/mytmp
77
// RUN: mkdir -p %t/mytmp
8-
// RUN: env TMPDIR="%t/mytmp" %clang --target=x86_64-linux-gnu -nogpulib -nogpuinc \
8+
// RUN: env TMP="%t/mytmp" TMPDIR="%t/mytmp" %clang --target=x86_64-linux-gnu -nogpulib -nogpuinc \
99
// RUN: --rocm-path=%S/Inputs/rocm -nostdinc -nostdlib -c \
1010
// RUN: --offload-arch=gfx1030 -emit-llvm -v %s 2>&1 | \
11-
// RUN: FileCheck -check-prefixes=CHECK %s
11+
// RUN: FileCheck -check-prefixes=CHECK -DOUTPUT_PATH="%t%{fs-sep}mytmp%{fs-sep}" %s
1212
// RUN: ls %t/mytmp >%t/mytmp.txt 2>&1
1313
// RUN: touch %t/empty.txt
1414
// RUN: diff %t/mytmp.txt %t/empty.txt
1515

16-
// CHECK: -o {{.*}}/mytmp/hip-temps-linux-gfx1030-{{.*}}.bc
16+
// CHECK: -o {{"?}}[[OUTPUT_PATH]]hip-temps-linux-gfx1030-{{.*}}.bc{{"?}}
1717

1818
int main() {}

0 commit comments

Comments
 (0)