summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorĐoàn Trần Công Danh <congdanhqx@gmail.com>2023-08-16 12:46:40 (GMT)
committerBrad King <brad.king@kitware.com>2023-08-16 14:24:08 (GMT)
commit1a5cb0c1c1754a886cb22b1349360ca6e7629814 (patch)
treef3ff0e2d86cfd34491c9f0a2464f14b5394da81c
parentf3d9a8211042c3df043d886f2217a705a62168a8 (diff)
downloadCMake-1a5cb0c1c1754a886cb22b1349360ca6e7629814.zip
CMake-1a5cb0c1c1754a886cb22b1349360ca6e7629814.tar.gz
CMake-1a5cb0c1c1754a886cb22b1349360ca6e7629814.tar.bz2
testDebuggerNamedPipe: fix for cppdap with nlohmann_json
Fixes: #25190 Signed-off-by: Đoàn Trần Công Danh <congdanhqx@gmail.com>
-rw-r--r--Tests/CMakeLib/testDebuggerNamedPipe.cxx14
1 files 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<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) {