Skip to content

Commit

Permalink
[test] env -u is not supported on AIX, use unset instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Wael Yehia committed Oct 10, 2024
1 parent dc09f96 commit 46f2fac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compiler-rt/test/profile/instrprof-tmpdir.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 46f2fac

Please sign in to comment.