| 1 | // RUN: %clang %s -o %T/suffix-log-path_test-binary |
| 2 | |
| 3 | // The glob below requires bash. |
| 4 | // REQUIRES: shell |
| 5 | |
| 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 |
| 10 | |
| 11 | // UNSUPPORTED: ios, android |
| 12 | |
| 13 | #include <stdlib.h> |
| 14 | #include <string.h> |
| 15 | |
| 16 | #include <sanitizer/common_interface_defs.h> |
| 17 | |
| 18 | int main(int argc, char **argv) { |
| 19 | __sanitizer_print_stack_trace(); |
| 20 | return 0; |
| 21 | } |
| 22 | // CHECK: #{{.*}} main |
| 23 | |