[PATCH] D133998: [HIP][test] Avoid %T
Fangrui Song via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 15 17:23:11 PDT 2022
MaskRay created this revision.
MaskRay added reviewers: tra, yaxunl.
Herald added a subscriber: StephenFan.
Herald added a project: All.
MaskRay requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
%T is a deprecated lit feature. It refers to the parent directory.
Another test/Driver test may corrupt the %T use of hip-link-bundle-archive.hip
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D133998
Files:
clang/test/Driver/hip-link-bundle-archive.hip
Index: clang/test/Driver/hip-link-bundle-archive.hip
===================================================================
--- clang/test/Driver/hip-link-bundle-archive.hip
+++ clang/test/Driver/hip-link-bundle-archive.hip
@@ -3,16 +3,17 @@
// Check clang unbundle the archive and link them by lld.
-// RUN: touch %T/libhipBundled.a
+// RUN: rm -rf %t && mkdir %t
+// RUN: touch %t/libhipBundled.a
// RUN: %clang -### --offload-arch=gfx906 --offload-arch=gfx1030 \
// RUN: --target=x86_64-unknown-linux-gnu \
-// RUN: -nogpulib %s -fgpu-rdc -L%T -lhipBundled \
+// RUN: -nogpulib %s -fgpu-rdc -L%t -lhipBundled \
// RUN: 2>&1 | FileCheck -check-prefix=GNU %s
-// RUN: touch %T/hipBundled2.lib
+// RUN: touch %t/hipBundled2.lib
// RUN: %clang -### --offload-arch=gfx906 --offload-arch=gfx1030 \
// RUN: --target=x86_64-pc-windows-msvc \
-// RUN: -nogpulib %s -fgpu-rdc -L%T -lhipBundled2 \
+// RUN: -nogpulib %s -fgpu-rdc -L%t -lhipBundled2 \
// RUN: 2>&1 | FileCheck -check-prefix=MSVC %s
// GNU: "{{.*}}clang-offload-bundler" "-unbundle" "-type=a" "-input={{.*}}libhipBundled.a" "-targets=hip-amdgcn-amd-amdhsa-gfx1030" "-output=[[A1030:.*\.a]]" "-allow-missing-bundles"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D133998.460565.patch
Type: text/x-patch
Size: 1202 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220916/e9ad2174/attachment.bin>
More information about the cfe-commits
mailing list