1 // RUN: %clang %s -o %T/suffix-log-path_test-binary
3 // The glob below requires bash.
6 // 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
11 // UNSUPPORTED: ios, android
16 #include <sanitizer/common_interface_defs.h>
18 int main(int argc
, char **argv
) {
19 __sanitizer_print_stack_trace();
22 // CHECK: #{{.*}} main