Skip to content

Commit 648a524

Browse files
boomanaiden154mahesh-attarde
authored andcommitted
[Offload] Remove uses of %T from lit tests (llvm#150721)
This patch removes all the instances of %T from offload/ (only one test contained this construction). %T has been deprecated for ~7 years and is not reccomended as it does not use a unique directory per test. Switch to using %t to ensure we use a unique dir per test and so that we can eventually remove %T. I did not actually test this. A couple feeble attempts at building/running the offload tests just leaves me with a ton of test failures. Given how small this is I'm reasonably sure it works though.
1 parent b95a303 commit 648a524

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

offload/test/offloading/shared_lib_fp_mapping.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// clang-format off
2-
// RUN: %clang-generic -fPIC -shared %S/../Inputs/declare_indirect_func.c -o %T/libslfm.so -fopenmp-version=51
3-
// RUN: %libomptarget-compile-generic -rpath %T -L %T -l slfm -o %t -fopenmp-version=51
2+
// RUN: mkdir -p %t.testdir
3+
// RUN: %clang-generic -fPIC -shared %S/../Inputs/declare_indirect_func.c -o %t.testidr/libslfm.so -fopenmp-version=51
4+
// RUN: %libomptarget-compile-generic -rpath %t.testdir -L %t.testdir -l slfm -o %t -fopenmp-version=51
45
// RUN: env LIBOMPTARGET_INFO=32 %t 2>&1 | %fcheck-generic
56
// clang-format on
67

0 commit comments

Comments
 (0)