[compiler-rt] 16ef893 - [test] env -u is not supported on AIX, use `unset` instead

Wael Yehia via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 10 14:24:10 PDT 2024


Author: Wael Yehia
Date: 2024-10-10T21:35:10Z
New Revision: 16ef893e9fdec2b08dafc82f5450b41834e09039

URL: https://github.com/llvm/llvm-project/commit/16ef893e9fdec2b08dafc82f5450b41834e09039
DIFF: https://github.com/llvm/llvm-project/commit/16ef893e9fdec2b08dafc82f5450b41834e09039.diff

LOG: [test] env -u is not supported on AIX, use `unset` instead

Added: 
    

Modified: 
    compiler-rt/test/profile/instrprof-tmpdir.c

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/profile/instrprof-tmpdir.c b/compiler-rt/test/profile/instrprof-tmpdir.c
index 6f323e7e6a01a5..7206df3c2eb0c6 100644
--- a/compiler-rt/test/profile/instrprof-tmpdir.c
+++ b/compiler-rt/test/profile/instrprof-tmpdir.c
@@ -12,7 +12,8 @@
 // RUN: llvm-profdata show ./raw2.profraw | FileCheck %s -check-prefix TMPDIR
 //
 // Check that we fall back to the default path if TMPDIR is missing.
-// RUN: env -u TMPDIR LLVM_PROFILE_FILE="%%t/raw3.profraw" %run %t/binary 2>&1 | FileCheck %s -check-prefix MISSING
+// RUN: %if system-aix %{ unset TMPDIR %}
+// RUN: env %if !system-aix %{ -u TMPDIR %} LLVM_PROFILE_FILE="%%t/raw3.profraw" %run %t/binary 2>&1 | FileCheck %s -check-prefix MISSING
 // RUN: llvm-profdata show ./default.profraw | FileCheck %s -check-prefix TMPDIR
 
 // TMPDIR: Maximum function count: 1


        


More information about the llvm-commits mailing list