Author: Lawrence D'Anna Date: 2021-11-02T14:30:08-07:00 New Revision: 7f01f78593d68741f1a26911e8cecca9805b3fa4
URL: https://github.com/llvm/llvm-project/commit/7f01f78593d68741f1a26911e8cecca9805b3fa4 DIFF: https://github.com/llvm/llvm-project/commit/7f01f78593d68741f1a26911e8cecca9805b3fa4.diff LOG: [lldb] update TestEchoCommands Followup to https://reviews.llvm.org/D112988 Sorry, I broke this test. The test was verifying the bad behavior of --source-quietly that the previous change fixed -- namely that it still echos the initial list of startup commands while sourcing them. Updated the test to verify that --source-quietly is quiet, rather than loud. Reviewed By: JDevlieghere Differential Revision: https://reviews.llvm.org/D113047 Added: Modified: lldb/test/Shell/Settings/Inputs/EchoCommandsQuiet.out lldb/test/Shell/Settings/TestEchoCommands.test Removed: ################################################################################ diff --git a/lldb/test/Shell/Settings/Inputs/EchoCommandsQuiet.out b/lldb/test/Shell/Settings/Inputs/EchoCommandsQuiet.out index 12ad094292dea..11eee55f1f768 100644 --- a/lldb/test/Shell/Settings/Inputs/EchoCommandsQuiet.out +++ b/lldb/test/Shell/Settings/Inputs/EchoCommandsQuiet.out @@ -1,2 +1,4 @@ -# CHECK: (lldb) command source -s 1 {{.*\n}} -# CHECK-NEXT: (lldb) command source -s 1 {{.*\n}} +CHECK: start +CHECK-NOT: source +CHECK-NOT: lldb +CHECK-NEXT: done diff --git a/lldb/test/Shell/Settings/TestEchoCommands.test b/lldb/test/Shell/Settings/TestEchoCommands.test index 67547eaabf89c..a667456303573 100644 --- a/lldb/test/Shell/Settings/TestEchoCommands.test +++ b/lldb/test/Shell/Settings/TestEchoCommands.test @@ -1,4 +1,4 @@ # RUN: %lldb -x -b -o 'settings set interpreter.echo-comment-commands true' -s %S/Inputs/EchoCommandsTest.in | FileCheck %S/Inputs/EchoCommandsAll.out # RUN: %lldb -x -b -o 'settings set interpreter.echo-comment-commands false' -s %S/Inputs/EchoCommandsTest.in | FileCheck %S/Inputs/EchoCommandsNoComments.out # RUN: %lldb -x -b -o 'settings set interpreter.echo-commands false' -s %S/Inputs/EchoCommandsTest.in | FileCheck %S/Inputs/EchoCommandsNone.out -# RUN: %lldb -x -b --source-quietly -s %S/Inputs/EchoCommandsTest.in | FileCheck %S/Inputs/EchoCommandsQuiet.out +# RUN: ( echo start ; %lldb -x -b --source-quietly -s %S/Inputs/EchoCommandsTest.in ; echo done ) | FileCheck %S/Inputs/EchoCommandsQuiet.out _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits