Skip to content

Commit d5d8aba

Browse files
committed
Try again and relax the windows test too
1 parent a8b0b35 commit d5d8aba

File tree

2 files changed

+13
-16
lines changed

2 files changed

+13
-16
lines changed

clang/test/Driver/hip-temps-linux.hip

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
11
// REQUIRES: x86-registered-target
22
// REQUIRES: amdgpu-registered-target
33

4-
// Check no temporary files or directories are left after compilation.
5-
6-
// RUN: rm -rf %t%{fs-sep}mytmp
7-
// RUN: mkdir -p %t%{fs-sep}mytmp
8-
// RUN: env TMPDIR="%t%{fs-sep}mytmp" TEMP="%t%{fs-sep}mytmp" TMP="%t%{fs-sep}mytmp" %clang --target=x86_64-linux-gnu \
9-
// RUN: -nogpulib -nogpuinc -nostdinc -nostdlib \
10-
// RUN: --rocm-path=%S/Inputs/rocm -c \
4+
// Check no temporary files or directores are left after compilation.
5+
// RUN: rm -rf %t/mytmp
6+
// RUN: mkdir -p %t/mytmp
7+
// RUN: env TMP="%t/mytmp" TMPDIR="%t/mytmp" %clang --target=x86_64-linux-gnu -nogpulib -nogpuinc \
8+
// RUN: --rocm-path=%S/Inputs/rocm -nostdinc -nostdlib -c \
119
// RUN: --offload-arch=gfx1030 -emit-llvm -v %s 2>&1 | \
12-
// RUN: FileCheck -DTMPDIR=%t%{fs-sep}mytmp%{fs-sep} %s
13-
// RUN: ls %t%{fs-sep}mytmp >%t%{fs-sep}mytmp.txt 2>&1
14-
// RUN: touch %t%{fs-sep}empty.txt
15-
// RUN: diff %t%{fs-sep}mytmp.txt %t%{fs-sep}empty.txt
10+
// RUN: FileCheck -check-prefixes=CHECK -DOUTPUT_PATH=%t%{fs-sep}mytmp%{fs-sep} %s
11+
// RUN: ls %t/mytmp >%t/mytmp.txt 2>&1
12+
// RUN: touch %t/empty.txt
13+
// RUN: diff %t/mytmp.txt %t/empty.txt
1614

17-
// CHECK: -o {{.*}}[[TMPDIR]]hip-temps-linux-gfx1030-{{.*}}.bc
15+
// CHECK: -o {{"?}}[[OUTPUT_PATH]]hip-temps-linux-gfx1030-{{.*}}.bc{{"?}}
1816

1917
int main() {}
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
// REQUIRES: x86-registered-target
22
// REQUIRES: amdgpu-registered-target
3-
// REQUIRES: system-windows
43

54
// Check no temporary files or directores are left after compilation.
65
// RUN: rm -rf %t/mytmp
76
// RUN: mkdir -p %t/mytmp
8-
// RUN: env TMP="%t/mytmp" %clang --target=x86_64-pc-windows-msvc -nogpulib -nogpuinc \
7+
// RUN: env TMP="%t/mytmp" TMPDIR="%t/mytmp" %clang --target=x86_64-pc-windows-msvc -nogpulib -nogpuinc \
98
// RUN: --rocm-path=%S/Inputs/rocm -nostdinc -nostdlib -c \
109
// RUN: --offload-arch=gfx1030 -emit-llvm -v %s 2>&1 | \
11-
// RUN: FileCheck -check-prefixes=CHECK %s
10+
// RUN: FileCheck -check-prefixes=CHECK -DOUTPUT_PATH=%t%{fs-sep}mytmp%{fs-sep} %s
1211
// RUN: ls %t/mytmp >%t/mytmp.txt 2>&1
1312
// RUN: touch %t/empty.txt
1413
// RUN: diff %t/mytmp.txt %t/empty.txt
1514

16-
// CHECK: -o "{{.*}}mytmp{{/|\\\\}}hip-temps-windows-gfx1030-{{.*}}.bc"
15+
// CHECK: -o [[OUTPUT_PATH]]hip-temps-windows-gfx1030-{{.*}}.bc
1716

1817
int main() {}

0 commit comments

Comments
 (0)