Skip to content

Commit 437079e

Browse files
Wael YehiaDanielCChen
authored andcommitted
[test] env -u is not supported on AIX, use unset instead
1 parent 79095ca commit 437079e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
// RUN: llvm-profdata show ./raw2.profraw | FileCheck %s -check-prefix TMPDIR
1313
//
1414
// Check that we fall back to the default path if TMPDIR is missing.
15-
// RUN: env -u TMPDIR LLVM_PROFILE_FILE="%%t/raw3.profraw" %run %t/binary 2>&1 | FileCheck %s -check-prefix 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
1617
// RUN: llvm-profdata show ./default.profraw | FileCheck %s -check-prefix TMPDIR
1718

1819
// TMPDIR: Maximum function count: 1

0 commit comments

Comments
 (0)