[education/rkward] rkward/autotests: Try to diagnose test cleanup issues.

Thomas Friedrichsmeier null at kde.org
Sun Oct 2 16:35:02 BST 2022


Git commit c80769408564e403312ca4d26e1afbe5ed5fb3d7 by Thomas Friedrichsmeier.
Committed on 02/10/2022 at 15:34.
Pushed by tfry into branch 'master'.

Try to diagnose test cleanup issues.

M  +5    -1    rkward/autotests/core_test.cpp

https://invent.kde.org/education/rkward/commit/c80769408564e403312ca4d26e1afbe5ed5fb3d7

diff --git a/rkward/autotests/core_test.cpp b/rkward/autotests/core_test.cpp
index 38964b4c..a826dace 100644
--- a/rkward/autotests/core_test.cpp
+++ b/rkward/autotests/core_test.cpp
@@ -109,16 +109,20 @@ private slots:
 	void init() {
 		testLog("Starting next test");
 	}
+
 	void cleanup() {
+		testLog("Cleanup. Backend status: %s", RInterface::instance()->backendIsDead() ? "dead" : (RInterface::instance()->backendIsIdle() ? "idle" : "busy"));
 		waitForAllFinished();
+		testLog("Cleanup done. Backend status: %s", RInterface::instance()->backendIsDead() ? "dead" : (RInterface::instance()->backendIsIdle() ? "idle" : "busy"));
 	}
+
 	void initTestCase() {
 		_test_timer.start();
 		qputenv("QTWEBENGINE_CHROMIUM_FLAGS", "--no-sandbox"); // Allow test to be run as root, which, for some reason is being done on the SuSE CI.
 		QLoggingCategory::setFilterRules("qt.text.layout=false");  // Filter out some noise
 		KAboutData::setApplicationData(KAboutData("rkward", "RKWard", RKWARD_VERSION, "Frontend to the R statistics language", KAboutLicense::GPL)); // component name needed for .rc files to load
 		RK_Debug::RK_Debug_Level = DL_DEBUG;
-		qDebug(R_EXECUTABLE);
+		testLog(R_EXECUTABLE);
 		RKSessionVars::r_binary = R_EXECUTABLE;
 		main_win = new RKWardMainWindow();
 		main_win->testmode_suppress_dialogs = true;


More information about the rkward-tracker mailing list