[Openmp-commits] [openmp] 20da662 - [OpenMP][FIX] Fixup test that doesn't work with lit's `env` substitute

Johannes Doerfert via Openmp-commits openmp-commits at lists.llvm.org
Tue Dec 5 16:39:30 PST 2023


Author: Johannes Doerfert
Date: 2023-12-05T16:32:19-08:00
New Revision: 20da662656931b5730ab21174a443ac828eb51f3

URL: https://github.com/llvm/llvm-project/commit/20da662656931b5730ab21174a443ac828eb51f3
DIFF: https://github.com/llvm/llvm-project/commit/20da662656931b5730ab21174a443ac828eb51f3.diff

LOG: [OpenMP][FIX] Fixup test that doesn't work with lit's `env` substitute

Added: 
    

Modified: 
    openmp/libomptarget/test/offloading/shared_lib_fp_mapping.c

Removed: 
    


################################################################################
diff  --git a/openmp/libomptarget/test/offloading/shared_lib_fp_mapping.c b/openmp/libomptarget/test/offloading/shared_lib_fp_mapping.c
index 8bd08ac5255c9..a98a84ccceaab 100644
--- a/openmp/libomptarget/test/offloading/shared_lib_fp_mapping.c
+++ b/openmp/libomptarget/test/offloading/shared_lib_fp_mapping.c
@@ -1,7 +1,7 @@
 // clang-format off
 // RUN: %clang-generic -fPIC -shared %S/../Inputs/declare_indirect_func.c -o %T/liba.so  -fopenmp-version=51
-// RUN: %libomptarget-compile-generic -L %T -l a -o %t  -fopenmp-version=51
-// RUN: env LIBOMPTARGET_INFO=32 LD_LIBRARY_PATH=%T:$LD_LIBRARY_PATH %t | %fcheck-generic
+// RUN: %libomptarget-compile-generic -rpath %T -L %T -l a -o %t  -fopenmp-version=51
+// RUN: env LIBOMPTARGET_INFO=32 %t 2>&1 | %fcheck-generic
 // clang-format on
 
 #include <stdio.h>


        


More information about the Openmp-commits mailing list