Skip to content

Commit 04c5097

Browse files
committed
[Sanitizer] fix android test env issue
1 parent 0a75d8e commit 04c5097

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

compiler-rt/test/sanitizer_common/TestCases/Posix/sanitizer_set_report_path_fail.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// RUN: %clangxx -O2 %s -o %t
22

33
// Case 1: Try setting a path that is an invalid/inaccessible directory.
4-
// RUN: not %env %run %t 2>&1 | FileCheck %s --check-prefix=ERROR1
4+
// RUN: not %run %t 2>&1 | FileCheck %s --check-prefix=ERROR1
55

66
// Case 2: Try setting a path that is too large.
7-
// RUN: not %env %run %t A 2>&1 | FileCheck %s --check-prefix=ERROR2
7+
// RUN: not %run %t A 2>&1 | FileCheck %s --check-prefix=ERROR2
88

99
#include <sanitizer/common_interface_defs.h>
1010
#include <stdio.h>

compiler-rt/test/sanitizer_common/android_commands/android_run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def build_env():
1313
# Android linker ignores RPATH. Set LD_LIBRARY_PATH to Output dir.
1414
args.append("LD_LIBRARY_PATH=%s" % (ANDROID_TMPDIR,))
1515
for (key, value) in list(os.environ.items()):
16-
if key in ["ASAN_ACTIVATION_OPTIONS", "SCUDO_OPTIONS"] or key.endswith(
16+
if key in ["ASAN_ACTIVATION_OPTIONS", "SCUDO_OPTIONS", "HOME", "TMPDIR"] or key.endswith(
1717
"SAN_OPTIONS"
1818
):
1919
args.append('%s="%s"' % (key, value.replace('"', '\\"')))

0 commit comments

Comments
 (0)