File tree Expand file tree Collapse file tree 5 files changed +14
-20
lines changed
sanitizer_common/TestCases Expand file tree Collapse file tree 5 files changed +14
-20
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/ 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
44
55int main (void ) {
66 return 0 ;
Original file line number Diff line number Diff line change @@ -7,8 +7,7 @@ RUN: %no_fuzzer_cpp_compiler %S/AFLDriverTest.cpp %libfuzzer_src/afl/afl_driver.
77RUN: env -u AFL_DRIVER_STDERR_DUPLICATE_FILENAME %run %t-AFLDriverTest
88
99; Test that specifying an invalid file causes a crash.
10- RUN: mkdir -p %t.dir
11- RUN: env ASAN_OPTIONS= AFL_DRIVER_STDERR_DUPLICATE_FILENAME="%t.dir" not --crash %run %t-AFLDriverTest
10+ RUN: env ASAN_OPTIONS= AFL_DRIVER_STDERR_DUPLICATE_FILENAME="%T" not --crash %run %t-AFLDriverTest
1211
1312; Test that a file is created when specified as the duplicate stderr.
1413RUN: env AFL_DRIVER_STDERR_DUPLICATE_FILENAME=%t %run %t-AFLDriverTest
Original file line number Diff line number Diff line change 1- // RUN: rm -rf %t.dir
2- // RUN: mkdir -p %t.dir
3- // RUN: %clang %s -o %t.dir/suffix-log-path_test-binary
1+ // RUN: %clang %s -o %T/suffix-log-path_test-binary
42
53// The glob below requires bash.
64// REQUIRES: shell
75
86// Good log_path with suffix.
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
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
1110
1211// UNSUPPORTED: ios, android
1312
Original file line number Diff line number Diff line change 11// RUN: %clangxx_xray -g -std=c++11 %s -o %t -fxray-modes=xray-fdr
2- // RUN: rm -rf %t.dir
3- // RUN: mkdir -p %t.dir
4- // RUN: cd %t.dir
2+ // RUN: rm -f fdr-inmemory-test-*
53// RUN: XRAY_OPTIONS="patch_premain=false xray_logfile_base=fdr-inmemory-test- \
64// RUN: verbosity=1" \
75// RUN: XRAY_FDR_OPTIONS="no_file_flush=true func_duration_threshold_us=0" \
86// RUN: %run %t 2>&1 | FileCheck %s
9- // RUN: FILES=`find %t.dir -name 'fdr-inmemory-test-*' | wc -l`
7+ // RUN: FILES=`find %T -name 'fdr-inmemory-test-*' | wc -l`
108// RUN: [ $FILES -eq 0 ]
11- // RUN: rm -rf %t.dir
9+ // RUN: rm -f fdr-inmemory-test-*
1210//
1311// REQUIRES: built-in-llvm-tree
1412
Original file line number Diff line number Diff line change 11// RUN: %clangxx_xray -g -std=c++11 %s -o %t -fxray-modes=xray-fdr
2- // RUN: rm -rf %t.dir
3- // RUN: mkdir -p %t.dir
4- // RUN: cd %t.dir
2+ // RUN: rm -f fdr-inmemory-test-*
53// RUN: XRAY_OPTIONS="patch_premain=false xray_logfile_base=fdr-inmemory-test- \
64// RUN: verbosity=1" \
75// RUN: XRAY_FDR_OPTIONS="no_file_flush=true func_duration_threshold_us=0" \
86// RUN: %run %t 2>&1 | FileCheck %s
9- // RUN: FILES=`find %t.dir -name 'fdr-inmemory-test-*' | wc -l`
7+ // RUN: FILES=`find %T -name 'fdr-inmemory-test-*' | wc -l`
108// RUN: [ $FILES -eq 0 ]
11- // RUN: rm -rf %t.dir
9+ // RUN: rm -f fdr-inmemory-test-*
1210//
1311// REQUIRES: built-in-llvm-tree
1412
You can’t perform that action at this time.
0 commit comments