[education/rkward/testing/win_citest_timeout] rkward/autotests: Try tracing what happens

Thomas Friedrichsmeier null at kde.org
Sun Oct 2 20:43:45 BST 2022


Git commit 336127be18a0c1783a1ad98cb3b726a4c0ed8fb0 by Thomas Friedrichsmeier.
Committed on 02/10/2022 at 19:43.
Pushed by tfry into branch 'testing/win_citest_timeout'.

Try tracing what happens

M  +2    -6    rkward/autotests/core_test.cpp

https://invent.kde.org/education/rkward/commit/336127be18a0c1783a1ad98cb3b726a4c0ed8fb0

diff --git a/rkward/autotests/core_test.cpp b/rkward/autotests/core_test.cpp
index 8bf23828..5025671d 100644
--- a/rkward/autotests/core_test.cpp
+++ b/rkward/autotests/core_test.cpp
@@ -211,23 +211,19 @@ private slots:
 	}
 
 	void restartRBackend() {
-		testLog("a");
 		auto restart_action = RKWardMainWindow::getMain()->actionCollection()->action("restart_r");
 		QVERIFY(restart_action != nullptr);
 		RInterface::issueCommand(new RCommand("x <- 1", RCommand::User));
-		testLog("b");
 		waitForAllFinished();
-		testLog("c");
 		QVERIFY(RObjectList::getGlobalEnv()->findObject("x"));
-		testLog("d");
 
 		QPointer<RInterface> oldiface = RInterface::instance();
+		RK_Debug::RK_Debug_Level = DL_TRACE;
 		restart_action->trigger();
-		testLog("e");
 		while (oldiface) {  // action may be delayed until next event processing
-		testLog("f");
 			qApp->processEvents();
 		}
+		testLog("f");
 		waitForBackendStarted();
 		testLog("g");
 


More information about the rkward-tracker mailing list