From 1a5cb0c1c1754a886cb22b1349360ca6e7629814 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Wed, 16 Aug 2023 19:46:40 +0700 Subject: testDebuggerNamedPipe: fix for cppdap with nlohmann_json MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes: #25190 Signed-off-by: Đoàn Trần Công Danh --- Tests/CMakeLib/testDebuggerNamedPipe.cxx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Tests/CMakeLib/testDebuggerNamedPipe.cxx b/Tests/CMakeLib/testDebuggerNamedPipe.cxx index d2b0728..ec91706 100644 --- a/Tests/CMakeLib/testDebuggerNamedPipe.cxx +++ b/Tests/CMakeLib/testDebuggerNamedPipe.cxx @@ -180,13 +180,13 @@ int runTest(int argc, char* argv[]) auto debuggerResponse = debuggerResponseStream.str(); std::vector expectedResponses = { - R"("event" : "initialized".*"type" : "event")", - R"("command" : "launch".*"success" : true.*"type" : "response")", - R"("command" : "configurationDone".*"success" : true.*"type" : "response")", - R"("reason" : "started".*"threadId" : 1.*"event" : "thread".*"type" : "event")", - R"("reason" : "exited".*"threadId" : 1.*"event" : "thread".*"type" : "event")", - R"("exitCode" : 0.*"event" : "exited".*"type" : "event")", - R"("command" : "disconnect".*"success" : true.*"type" : "response")" + R"("event" *: *"initialized".*"type" *: *"event")", + R"("command" *: *"launch".*"success" *: *true.*"type" *: *"response")", + R"("command" *: *"configurationDone".*"success" *: *true.*"type" *: *"response")", + R"("reason" *: *"started".*"threadId" *: *1.*"event" *: *"thread".*"type" *: *"event")", + R"("reason" *: *"exited".*"threadId" *: *1.*"event" *: *"thread".*"type" *: *"event")", + R"("exitCode" *: *0.*"event" *: *"exited".*"type" *: *"event")", + R"("command" *: *"disconnect".*"success" *: *true.*"type" *: *"response")" }; for (auto& regexString : expectedResponses) { -- cgit v0.12