File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 1
1
// REQUIRES: x86-registered-target
2
2
// REQUIRES: amdgpu-registered-target
3
+ // REQUIRES: system-linux
3
4
4
5
// Check no temporary files or directores are left after compilation.
5
6
// RUN: rm -rf %t/mytmp
6
7
// 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 \
8
9
// RUN: --rocm-path=%S/Inputs/rocm -nostdinc -nostdlib -c \
9
10
// 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
11
12
// RUN: ls %t/mytmp >%t/mytmp.txt 2>&1
12
13
// RUN: touch %t/empty.txt
13
14
// RUN: diff %t/mytmp.txt %t/empty.txt
14
15
15
- // CHECK: -o {{"?}}[[OUTPUT_PATH]] hip-temps-linux-gfx1030-{{.*}}.bc{{"?}}
16
+ // CHECK: -o {{.*}}/mytmp/ hip-temps-linux-gfx1030-{{.*}}.bc
16
17
17
18
int main () {}
Original file line number Diff line number Diff line change 1
1
// REQUIRES: x86-registered-target
2
2
// REQUIRES: amdgpu-registered-target
3
+ // REQUIRES: system-windows
3
4
4
5
// Check no temporary files or directores are left after compilation.
5
6
// RUN: rm -rf %t/mytmp
6
7
// 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 \
8
9
// RUN: --rocm-path=%S/Inputs/rocm -nostdinc -nostdlib -c \
9
10
// 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
11
12
// RUN: ls %t/mytmp >%t/mytmp.txt 2>&1
12
13
// RUN: touch %t/empty.txt
13
14
// RUN: diff %t/mytmp.txt %t/empty.txt
14
15
15
- // CHECK: -o [[OUTPUT_PATH]] hip-temps-windows-gfx1030-{{.*}}.bc
16
+ // CHECK: -o "{{.*}}mytmp{{/|\\\\}} hip-temps-windows-gfx1030-{{.*}}.bc"
16
17
17
18
int main () {}
You can’t perform that action at this time.
0 commit comments