Skip to content

Commit 8b57e62

Browse files
committed
Fix path separator check on windows
1 parent db51111 commit 8b57e62

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
// REQUIRES: amdgpu-registered-target
33

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

15-
// CHECK: -o {{.*}}/mytmp/hip-temps-linux-gfx1030-{{.*}}.bc
15+
// CHECK: -o {{.*}}[[TMPDIR]]hip-temps-linux-gfx1030-{{.*}}.bc
1616

1717
int main() {}

0 commit comments

Comments
 (0)