Skip to content

Commit 79da1c4

Browse files
authored
[Sanitizer] Use %device_rundir/ to fix test (#142274)
I attempted to fix this test in #142235 but we a new error. https://lab.llvm.org/buildbot/#/builders/186/builds/9524/steps/26/logs/stdio > ERROR: Can't create directory: /var The path we want is actually at `/data/local/tmp/Output/var/...`. I found `%device_rundir/` evaluates to this prefix on android, and nothing otherwise. https://github.com/llvm/llvm-project/blob/f057a593a7151437edd25cfbbdcf450139346f12/compiler-rt/test/lit.common.cfg.py#L658
1 parent 2cbe8df commit 79da1c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Test __sanitizer_set_report_path and __sanitizer_get_report_path:
22
// RUN: %clangxx -O2 %s -o %t
3-
// RUN: %env HOME=%t.homedir TMPDIR=%t.tmpdir %run %t 2>&1 | FileCheck %s
3+
// RUN: %env HOME=%device_rundir/%t.homedir TMPDIR=%device_rundir/%t.tmpdir %run %t 2>&1 | FileCheck %s
44

55
#include <sanitizer/common_interface_defs.h>
66
#include <stdio.h>

0 commit comments

Comments
 (0)