summaryrefslogtreecommitdiffstats
path: root/tests/auto/core/ifcodegen/backends/server_qtro/serverMain.cpp
diff options
context:
space:
mode:
authorDominik Holland <dominik.holland@qt.io>2024-02-20 16:07:09 +0100
committerDominik Holland <dominik.holland@qt.io>2024-02-20 17:55:52 +0100
commitb488ddf54c2bf5d90c418cfbc9b2f13809a61a83 (patch)
treeabc869ac73b3bb817e5793fcf009d03e5fd65493 /tests/auto/core/ifcodegen/backends/server_qtro/serverMain.cpp
parent9f10ab61b13017714b4562cf812ca9e0626de656 (diff)
tst_backends: Try to shutdown the server process before killing it
Otherwise the code-coverage data is not written correctly. Pick-to: 6.7 Change-Id: Ia5efe74e4e55db79ffac682c007acd4d06e8cc9d Reviewed-by: Robert Griebl <robert.griebl@qt.io>
Diffstat (limited to 'tests/auto/core/ifcodegen/backends/server_qtro/serverMain.cpp')
-rw-r--r--tests/auto/core/ifcodegen/backends/server_qtro/serverMain.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/core/ifcodegen/backends/server_qtro/serverMain.cpp b/tests/auto/core/ifcodegen/backends/server_qtro/serverMain.cpp
index 16f74212..898a0a13 100644
--- a/tests/auto/core/ifcodegen/backends/server_qtro/serverMain.cpp
+++ b/tests/auto/core/ifcodegen/backends/server_qtro/serverMain.cpp
@@ -123,6 +123,8 @@ void serverMain(QIfRemoteObjectsConfig &config)
contactsModelService->update(0, updatedContact);
} else if (cmd == u"remove"_s) {
contactsModelService->remove(0);
+ } else if (cmd == u"quit"_s) {
+ qApp->quit();
}
});
}