[education/rkward] rkward/autotests: Filter out noise

Thomas Friedrichsmeier null at kde.org
Sat Jun 11 15:24:21 BST 2022


Git commit 4c71845ea231730d5bc90acf182a1ca7d71c1450 by Thomas Friedrichsmeier.
Committed on 10/06/2022 at 22:51.
Pushed by tfry into branch 'master'.

Filter out noise

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

https://invent.kde.org/education/rkward/commit/4c71845ea231730d5bc90acf182a1ca7d71c1450

diff --git a/rkward/autotests/core_test.cpp b/rkward/autotests/core_test.cpp
index fd8d4038..88ec965f 100644
--- a/rkward/autotests/core_test.cpp
+++ b/rkward/autotests/core_test.cpp
@@ -3,6 +3,7 @@
 #include <QApplication>
 #include <QFile>
 #include <QDir>
+#include <QLoggingCategory>
 
 #include <KAboutData>
 
@@ -12,8 +13,12 @@
 #include "../rbackend/rksessionvars.h"
 #include "../rbackend/rkrinterface.h"
 
-void RKDebug (int, int, const char*, ...) {
-	// disabled for now
+void RKDebug (int, int, const char* fmt, ...) {
+	va_list ap;
+	va_start(ap, fmt);
+	vprintf(fmt, ap);
+	va_end(ap);
+	printf("\n");
 }
 
 class RKWardCoreTest: public QObject {
@@ -43,6 +48,7 @@ private slots:
 	void initTestCase()
 	{
 		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*=false");
 		KAboutData::setApplicationData(KAboutData("rkward")); // needed for .rc files to load
 		RK_Debug::RK_Debug_Level = DL_DEBUG;
 		qDebug(R_EXECUTABLE);



More information about the rkward-tracker mailing list