llvm-project/lldb/test/Shell/Log/TestHandlers.test
Jonas Devlieghere 3c565c2466
[lldb] Print an error for unsupported combinations of log options
Print an error for unsupported combinations of log handlers and log
options. Only the stream log handler takes a file and only the circular
and stream handler take a buffer size. This cannot be dealt with through
option groups because the option combinations depend on the requested
handler.

Differential revision: https://reviews.llvm.org/D143623
2023-02-09 09:58:39 -08:00

6 lines
448 B
Plaintext

# RUN: %lldb -o 'log enable --log-handler os --file /tmp/foo gdb-remote packets' 2>&1 | FileCheck %s --check-prefix UNSUPPORTED-FILE
# RUN: %lldb -o 'log enable --log-handler os --buffer 10 gdb-remote packets' 2>&1 | FileCheck %s --check-prefix UNSUPPORTED-BUFFER
# UNSUPPORTED-FILE: a file name can only be specified for the stream handler
# UNSUPPORTED-BUFFER: a buffer size can only be specified for the circular and stream buffer handler