File tree Expand file tree Collapse file tree 5 files changed +20
-14
lines changed
sanitizer_common/TestCases Expand file tree Collapse file tree 5 files changed +20
-14
lines changed Original file line number Diff line number Diff line change 1
- // RUN: mkdir -p %T /a-long-directory-name-to-test-allocations-for-exceptions-in-_dl_lookup_symbol_x-since-glibc-2.27
2
- // RUN: %clangxx_asan -g %s -o %T /long-object-path
3
- // RUN: %run %T /a-*/../a-*/../a-*/../a-*/../a-*/../a-*/../a-*/../a-*/../long-object-path
1
+ // RUN: mkdir -p %t.dir /a-long-directory-name-to-test-allocations-for-exceptions-in-_dl_lookup_symbol_x-since-glibc-2.27
2
+ // RUN: %clangxx_asan -g %s -o %t.dir /long-object-path
3
+ // RUN: %run %t.dir /a-*/../a-*/../a-*/../a-*/../a-*/../a-*/../a-*/../a-*/../long-object-path
4
4
5
5
int main (void ) {
6
6
return 0 ;
Original file line number Diff line number Diff line change @@ -7,7 +7,8 @@ RUN: %no_fuzzer_cpp_compiler %S/AFLDriverTest.cpp %libfuzzer_src/afl/afl_driver.
7
7
RUN: env -u AFL_DRIVER_STDERR_DUPLICATE_FILENAME %run %t-AFLDriverTest
8
8
9
9
; Test that specifying an invalid file causes a crash.
10
- RUN: env ASAN_OPTIONS= AFL_DRIVER_STDERR_DUPLICATE_FILENAME="%T" not --crash %run %t-AFLDriverTest
10
+ RUN: mkdir -p %t.dir
11
+ RUN: env ASAN_OPTIONS= AFL_DRIVER_STDERR_DUPLICATE_FILENAME="%t.dir" not --crash %run %t-AFLDriverTest
11
12
12
13
; Test that a file is created when specified as the duplicate stderr.
13
14
RUN: env AFL_DRIVER_STDERR_DUPLICATE_FILENAME=%t %run %t-AFLDriverTest
Original file line number Diff line number Diff line change 1
- // RUN: %clang %s -o %T/suffix-log-path_test-binary
1
+ // RUN: rm -rf %t.dir
2
+ // RUN: mkdir -p %t.dir
3
+ // RUN: %clang %s -o %t.dir/suffix-log-path_test-binary
2
4
3
5
// The glob below requires bash.
4
6
// REQUIRES: shell
5
7
6
8
// Good log_path with suffix.
7
- // RUN: rm -f %T/sanitizer.log.*.txt
8
- // RUN: %env_tool_opts=log_path=%T/sanitizer.log:log_exe_name=1:log_suffix=.txt %run %T/suffix-log-path_test-binary 2> %t.out
9
- // RUN: FileCheck %s < %T/sanitizer.log.suffix-log-path_test-binary.*.txt
9
+ // RUN: %env_tool_opts=log_path=%t.dir/sanitizer.log:log_exe_name=1:log_suffix=.txt %run %t.dir/suffix-log-path_test-binary 2> %t.out
10
+ // RUN: FileCheck %s < %t.dir/sanitizer.log.suffix-log-path_test-binary.*.txt
10
11
11
12
// UNSUPPORTED: ios, android
12
13
Original file line number Diff line number Diff line change 1
1
// RUN: %clangxx_xray -g -std=c++11 %s -o %t -fxray-modes=xray-fdr
2
- // RUN: rm -f fdr-inmemory-test-*
2
+ // RUN: rm -rf %t.dir
3
+ // RUN: mkdir -p %t.dir
4
+ // RUN: cd %t.dir
3
5
// RUN: XRAY_OPTIONS="patch_premain=false xray_logfile_base=fdr-inmemory-test- \
4
6
// RUN: verbosity=1" \
5
7
// RUN: XRAY_FDR_OPTIONS="no_file_flush=true func_duration_threshold_us=0" \
6
8
// RUN: %run %t 2>&1 | FileCheck %s
7
- // RUN: FILES=`find %T -name 'fdr-inmemory-test-*' | wc -l`
9
+ // RUN: FILES=`find %t.dir -name 'fdr-inmemory-test-*' | wc -l`
8
10
// RUN: [ $FILES -eq 0 ]
9
- // RUN: rm -f fdr-inmemory-test-*
11
+ // RUN: rm -rf %t.dir
10
12
//
11
13
// REQUIRES: built-in-llvm-tree
12
14
Original file line number Diff line number Diff line change 1
1
// RUN: %clangxx_xray -g -std=c++11 %s -o %t -fxray-modes=xray-fdr
2
- // RUN: rm -f fdr-inmemory-test-*
2
+ // RUN: rm -rf %t.dir
3
+ // RUN: mkdir -p %t.dir
4
+ // RUN: cd %t.dir
3
5
// RUN: XRAY_OPTIONS="patch_premain=false xray_logfile_base=fdr-inmemory-test- \
4
6
// RUN: verbosity=1" \
5
7
// RUN: XRAY_FDR_OPTIONS="no_file_flush=true func_duration_threshold_us=0" \
6
8
// RUN: %run %t 2>&1 | FileCheck %s
7
- // RUN: FILES=`find %T -name 'fdr-inmemory-test-*' | wc -l`
9
+ // RUN: FILES=`find %t.dir -name 'fdr-inmemory-test-*' | wc -l`
8
10
// RUN: [ $FILES -eq 0 ]
9
- // RUN: rm -f fdr-inmemory-test-*
11
+ // RUN: rm -rf %t.dir
10
12
//
11
13
// REQUIRES: built-in-llvm-tree
12
14
You can’t perform that action at this time.
0 commit comments