Author: Fangrui Song Date: 2023-08-01T12:55:00-07:00 New Revision: 8a9c51cdbb6d68a5526e4636090ee52ee3cf38f7
URL: https://github.com/llvm/llvm-project/commit/8a9c51cdbb6d68a5526e4636090ee52ee3cf38f7 DIFF: https://github.com/llvm/llvm-project/commit/8a9c51cdbb6d68a5526e4636090ee52ee3cf38f7.diff LOG: [Driver][test] Remove hipBundled before %clang Otherwise, if `%clang` fails, rm -rf hipBundled will not run and the linkering hipBundled will cause the next test invocation to fail. Added: Modified: clang/test/Driver/hip-link-bundle-archive.hip Removed: ################################################################################ diff --git a/clang/test/Driver/hip-link-bundle-archive.hip b/clang/test/Driver/hip-link-bundle-archive.hip index 945b45afa20dbc..6dc33b0d671763 100644 --- a/clang/test/Driver/hip-link-bundle-archive.hip +++ b/clang/test/Driver/hip-link-bundle-archive.hip @@ -5,15 +5,13 @@ // value of the '-l' option, it should not interfere with // the discovery and unbundling of the archive. -// RUN: rm -rf %t && mkdir %t +// RUN: rm -rf %t hipBundled && mkdir %t hipBundled // RUN: touch %t/dummy.bc -// RUN: mkdir hipBundled // RUN: llvm-ar cr %t/libhipBundled.a %t/dummy.bc // RUN: %clang -### --offload-arch=gfx906 --offload-arch=gfx1030 \ // RUN: --target=x86_64-unknown-linux-gnu \ // RUN: -nogpulib %s -fgpu-rdc -L%t -lhipBundled \ // RUN: 2>&1 | FileCheck -check-prefixes=GNU,GNU1,GNU-L %s -// RUN: rm -rf hipBundled // RUN: %clang -### --offload-arch=gfx906 --offload-arch=gfx1030 \ // RUN: --target=x86_64-unknown-linux-gnu \ _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits