mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 08:20:18 -06:00
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:
committed by
Brad King
parent
f3d9a82110
commit
1a5cb0c1c1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user