1// RUN: %asan_symbolize --log-level debug --help 2> %t_debug_log_output.txt
2// RUN: FileCheck %s -input-file=%t_debug_log_output.txt -check-prefix=DEBUG-CHECK
3// DEBUG-CHECK: DEBUG: [setup_logging() asan_symbolize.py:{{[0-9]+}}] Logging level set to "debug"
4//
5// FileCheck doesn't like empty files so add stdout too.
6// RUN: %asan_symbolize --log-level info --help > %t_info_log_output.txt 2>&1
7// RUN: FileCheck %s -input-file=%t_info_log_output.txt -check-prefix=INFO-CHECK
8// INFO-CHECK-NOT: DEBUG: [setup_logging() asan_symbolize.py:{{[0-9]+}}]
9

source code of compiler-rt/test/asan/TestCases/Posix/asan_symbolize_script/set_log_level.cpp