[llvm] 9ddfe62 - [LLVM][test][nfc] Updating test to work with internal shell (#98370)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 11 09:34:28 PDT 2024


Author: Connie
Date: 2024-07-11T09:34:24-07:00
New Revision: 9ddfe62f5c11e3f65f444209f514029ded2d58b9

URL: https://github.com/llvm/llvm-project/commit/9ddfe62f5c11e3f65f444209f514029ded2d58b9
DIFF: https://github.com/llvm/llvm-project/commit/9ddfe62f5c11e3f65f444209f514029ded2d58b9.diff

LOG: [LLVM][test][nfc] Updating test to work with internal shell (#98370)

The RUN line attempts to set the JITDUMPDIR environment variable, which
fails in llvm-lit's internal shell. This patch prefixes JITDUMPDIR with
env so that the behavior of setting the variable is as expected in the
internal shell.

Added: 
    

Modified: 
    llvm/test/ExecutionEngine/JITLink/x86-64/ELF_perf.s

Removed: 
    


################################################################################
diff  --git a/llvm/test/ExecutionEngine/JITLink/x86-64/ELF_perf.s b/llvm/test/ExecutionEngine/JITLink/x86-64/ELF_perf.s
index a2dc6edccd375..bec3cead3cd4f 100644
--- a/llvm/test/ExecutionEngine/JITLink/x86-64/ELF_perf.s
+++ b/llvm/test/ExecutionEngine/JITLink/x86-64/ELF_perf.s
@@ -6,7 +6,7 @@
 # RUN: rm -rf %t && mkdir -p %t
 # RUN: llvm-mc -triple=x86_64-unknown-linux -position-independent \
 # RUN:     -filetype=obj -o %t/ELF_x86-64_perf.o %s
-# RUN: JITDUMPDIR="%t" llvm-jitlink -perf-support \
+# RUN: env JITDUMPDIR="%t" llvm-jitlink -perf-support \
 # RUN:     %t/ELF_x86-64_perf.o
 # RUN: test -f %t/.debug/jit/llvm-IR-jit-*/jit-*.dump
 


        


More information about the llvm-commits mailing list