Skip to content

Commit 5321f5c

Browse files
[compiler-rt][Profile] Temporarily Disable Test on AIX
This was very hackily patched in 16ef893 to not use env -u. The internal shell does not support unset, but does supprt env -u. Disable the test for now so we can enable the internal shell with a TODO to enable it after the internal shell landing has stuck. Reviewers: fmayer, vitalybuka, w2yehia, daltenty, mingmingl-llvm, madanial0 Reviewed By: mingmingl-llvm Pull Request: llvm#166637
1 parent 77e3975 commit 5321f5c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
// AIX does not support env -u.
2+
// TODO(boomanaiden154): Reenable AIX support once we use the internal shell by
3+
// default.
4+
// UNSUPPORTED: system-aix
5+
16
// RUN: rm -rf %t
27
// RUN: mkdir -p %t
38
// RUN: cd %t
@@ -12,8 +17,7 @@
1217
// RUN: llvm-profdata show ./raw2.profraw | FileCheck %s -check-prefix TMPDIR
1318
//
1419
// Check that we fall back to the default path if TMPDIR is missing.
15-
// RUN: %if system-aix %{ unset TMPDIR %}
16-
// RUN: env %if !system-aix %{ -u TMPDIR %} LLVM_PROFILE_FILE="%%t/raw3.profraw" %run %t/binary 2>&1 | FileCheck %s -check-prefix MISSING
20+
// RUN: env -u TMPDIR LLVM_PROFILE_FILE="%%t/raw3.profraw" %run %t/binary 2>&1 | FileCheck %s -check-prefix MISSING
1721
// RUN: llvm-profdata show ./default.profraw | FileCheck %s -check-prefix TMPDIR
1822

1923
// TMPDIR: Maximum function count: 1

0 commit comments

Comments
 (0)