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
4
4
5
5
int main (void ) {
6
6
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.
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: 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
12
11
13
12
; Test that a file is created when specified as the duplicate stderr.
14
13
RUN: 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
4
2
5
3
// The glob below requires bash.
6
4
// REQUIRES: shell
7
5
8
6
// 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
11
10
12
11
// UNSUPPORTED: ios, android
13
12
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 -rf %t.dir
3
- // RUN: mkdir -p %t.dir
4
- // RUN: cd %t.dir
2
+ // RUN: rm -f fdr-inmemory-test-*
5
3
// RUN: XRAY_OPTIONS="patch_premain=false xray_logfile_base=fdr-inmemory-test- \
6
4
// RUN: verbosity=1" \
7
5
// RUN: XRAY_FDR_OPTIONS="no_file_flush=true func_duration_threshold_us=0" \
8
6
// 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`
10
8
// RUN: [ $FILES -eq 0 ]
11
- // RUN: rm -rf %t.dir
9
+ // RUN: rm -f fdr-inmemory-test-*
12
10
//
13
11
// REQUIRES: built-in-llvm-tree
14
12
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 -rf %t.dir
3
- // RUN: mkdir -p %t.dir
4
- // RUN: cd %t.dir
2
+ // RUN: rm -f fdr-inmemory-test-*
5
3
// RUN: XRAY_OPTIONS="patch_premain=false xray_logfile_base=fdr-inmemory-test- \
6
4
// RUN: verbosity=1" \
7
5
// RUN: XRAY_FDR_OPTIONS="no_file_flush=true func_duration_threshold_us=0" \
8
6
// 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`
10
8
// RUN: [ $FILES -eq 0 ]
11
- // RUN: rm -rf %t.dir
9
+ // RUN: rm -f fdr-inmemory-test-*
12
10
//
13
11
// REQUIRES: built-in-llvm-tree
14
12
You can’t perform that action at this time.
0 commit comments