[clang] Fix tests hip-offload-compress-zlib/zstd.hip (PR #74783)
Yaxun Liu via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 7 15:27:19 PST 2023
https://github.com/yxsamliu created https://github.com/llvm/llvm-project/pull/74783
Use %t in output file name as %T is non-unique.
>From d95bc5d805a5ee267959ee342bc40b02c5fa4c22 Mon Sep 17 00:00:00 2001
From: "Yaxun (Sam) Liu" <yaxun.liu at amd.com>
Date: Thu, 7 Dec 2023 18:25:33 -0500
Subject: [PATCH] Fix tests hip-offload-compress-zlib/zstd.hip
Use %t in output file name as %T is non-unique.
---
clang/test/Driver/hip-offload-compress-zlib.hip | 6 +++---
clang/test/Driver/hip-offload-compress-zstd.hip | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/clang/test/Driver/hip-offload-compress-zlib.hip b/clang/test/Driver/hip-offload-compress-zlib.hip
index a29b6d037350d..7557fdde8786c 100644
--- a/clang/test/Driver/hip-offload-compress-zlib.hip
+++ b/clang/test/Driver/hip-offload-compress-zlib.hip
@@ -4,13 +4,13 @@
// Test compress bundled bitcode.
-// RUN: rm -rf %T/a.bc
+// RUN: rm -rf %t.bc
// RUN: %clang -c -v --target=x86_64-linux-gnu \
// RUN: -x hip --offload-arch=gfx1100 --offload-arch=gfx1101 \
// RUN: -fgpu-rdc -nogpuinc -nogpulib \
// RUN: %S/Inputs/hip_multiple_inputs/a.cu \
// RUN: --offload-compress --offload-device-only --gpu-bundle-output \
-// RUN: -o %T/a.bc \
+// RUN: -o %t.bc \
// RUN: 2>&1 | FileCheck %s
// CHECK: clang-offload-bundler{{.*}} -type=bc
@@ -23,7 +23,7 @@
// RUN: %clang --hip-link -### -v --target=x86_64-linux-gnu \
// RUN: --offload-arch=gfx1100 --offload-arch=gfx1101 \
// RUN: -fgpu-rdc -nogpulib \
-// RUN: %T/a.bc --offload-device-only \
+// RUN: %t.bc --offload-device-only \
// RUN: 2>&1 | FileCheck -check-prefix=UNBUNDLE %s
// UNBUNDLE: clang-offload-bundler{{.*}} "-type=bc"
diff --git a/clang/test/Driver/hip-offload-compress-zstd.hip b/clang/test/Driver/hip-offload-compress-zstd.hip
index 688c2c85329c1..3680ae47974a6 100644
--- a/clang/test/Driver/hip-offload-compress-zstd.hip
+++ b/clang/test/Driver/hip-offload-compress-zstd.hip
@@ -4,13 +4,13 @@
// Test compress bundled bitcode.
-// RUN: rm -rf %T/a.bc
+// RUN: rm -rf %t.bc
// RUN: %clang -c -v --target=x86_64-linux-gnu \
// RUN: -x hip --offload-arch=gfx1100 --offload-arch=gfx1101 \
// RUN: -fgpu-rdc -nogpuinc -nogpulib \
// RUN: %S/Inputs/hip_multiple_inputs/a.cu \
// RUN: --offload-compress --offload-device-only --gpu-bundle-output \
-// RUN: -o %T/a.bc \
+// RUN: -o %t.bc \
// RUN: 2>&1 | FileCheck %s
// CHECK: clang-offload-bundler{{.*}} -type=bc
@@ -23,7 +23,7 @@
// RUN: %clang --hip-link -### -v --target=x86_64-linux-gnu \
// RUN: --offload-arch=gfx1100 --offload-arch=gfx1101 \
// RUN: -fgpu-rdc -nogpulib \
-// RUN: %T/a.bc --offload-device-only \
+// RUN: %t.bc --offload-device-only \
// RUN: 2>&1 | FileCheck -check-prefix=UNBUNDLE %s
// UNBUNDLE: clang-offload-bundler{{.*}} "-type=bc"
More information about the cfe-commits
mailing list