21 lines · c
1// RUN: rm -rf %t.dir2// RUN: mkdir -p %t.dir3// RUN: %clang %s -o %t.dir/suffix-log-path_test-binary4 5// Good log_path with suffix.6// 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.out7// RUN: FileCheck %s < %t.dir/sanitizer.log.suffix-log-path_test-binary.*.txt8 9// UNSUPPORTED: ios, android10 11#include <stdlib.h>12#include <string.h>13 14#include <sanitizer/common_interface_defs.h>15 16int main(int argc, char **argv) {17 __sanitizer_print_stack_trace();18 return 0;19}20// CHECK: #{{.*}} main21