testDebuggerNamedPipe: fix for cppdap with nlohmann_json

Fixes: #25190
Signed-off-by: Đoàn Trần Công Danh <congdanhqx@gmail.com>
This commit is contained in:
Đoàn Trần Công Danh
2023-08-16 19:46:40 +07:00
committed by Brad King
parent f3d9a82110
commit 1a5cb0c1c1

View File

@@ -180,13 +180,13 @@ int runTest(int argc, char* argv[])
auto debuggerResponse = debuggerResponseStream.str();
std::vector<std::string> 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) {