From 531d877ee6410a94f5b4cb888d3c785d6ef0552c Mon Sep 17 00:00:00 2001 From: Lawrence D'Anna Date: Thu, 4 Nov 2021 00:58:31 -0700 Subject: [PATCH] [lldb] Fix TestEchoCommands.test again In 7f01f78593d6 [lldb] update TestEchoCommands -- I fixed this test, but not on windows, becuase I used some unix shell syntax that doesn't work with cmd.exe. Fixed it so it will work in both. Test logic is the same. This is a trivial fix, so bypassing review to get the build clean again ASAP. --- lldb/test/Shell/Settings/TestEchoCommands.test | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lldb/test/Shell/Settings/TestEchoCommands.test b/lldb/test/Shell/Settings/TestEchoCommands.test index a667456..234b974 100644 --- a/lldb/test/Shell/Settings/TestEchoCommands.test +++ b/lldb/test/Shell/Settings/TestEchoCommands.test @@ -1,4 +1,8 @@ # 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: ( echo start ; %lldb -x -b --source-quietly -s %S/Inputs/EchoCommandsTest.in ; echo done ) | FileCheck %S/Inputs/EchoCommandsQuiet.out + +RUN: echo start >%t.file +RUN: %lldb -x -b --source-quietly -s %S/Inputs/EchoCommandsTest.in >>%t.file +RUN: echo done >>%t.file +RUN: FileCheck %S/Inputs/EchoCommandsQuiet.out <%t.file -- 2.7.4