Skip to content

Commit 99da25f

Browse files
committed
Revert the hard cases
1 parent 76c629a commit 99da25f

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

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

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

45
// Check no temporary files or directores are left after compilation.
56
// RUN: rm -rf %t/mytmp
67
// RUN: mkdir -p %t/mytmp
7-
// RUN: env TMP="%t/mytmp" TMPDIR="%t/mytmp" %clang --target=x86_64-linux-gnu -nogpulib -nogpuinc \
8+
// RUN: env TMPDIR="%t/mytmp" %clang --target=x86_64-linux-gnu -nogpulib -nogpuinc \
89
// RUN: --rocm-path=%S/Inputs/rocm -nostdinc -nostdlib -c \
910
// RUN: --offload-arch=gfx1030 -emit-llvm -v %s 2>&1 | \
10-
// RUN: FileCheck -check-prefixes=CHECK -DOUTPUT_PATH="%t%{fs-sep}mytmp%{fs-sep}" %s
11+
// RUN: FileCheck -check-prefixes=CHECK %s
1112
// RUN: ls %t/mytmp >%t/mytmp.txt 2>&1
1213
// RUN: touch %t/empty.txt
1314
// RUN: diff %t/mytmp.txt %t/empty.txt
1415

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

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

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

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

1718
int main() {}

0 commit comments

Comments
 (0)