[OptTable] Fix typo VALUE => VALUES (NFCI) (#121523)
[llvm-project.git] / compiler-rt / test / sanitizer_common / TestCases / suffix-log-path_test.c
blob8e131054c2d4d641aff5a3cd11499a3d1dddcbae
1 // RUN: %clang %s -o %T/suffix-log-path_test-binary
3 // The glob below requires bash.
4 // REQUIRES: shell
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
13 #include <stdlib.h>
14 #include <string.h>
16 #include <sanitizer/common_interface_defs.h>
18 int main(int argc, char **argv) {
19 __sanitizer_print_stack_trace();
20 return 0;
22 // CHECK: #{{.*}} main