[education/rkward] rkward: Adjust test case, remove some leftover debug messages
Thomas Friedrichsmeier
null at kde.org
Tue Oct 4 07:43:15 BST 2022
Git commit af7bfb897600fefba256f639937ee96b4dbd8ff1 by Thomas Friedrichsmeier.
Committed on 04/10/2022 at 06:42.
Pushed by tfry into branch 'master'.
Adjust test case, remove some leftover debug messages
M +1 -1 rkward/autotests/core_test.cpp
M +0 -3 rkward/rbackend/rkfrontendtransmitter.cpp
https://invent.kde.org/education/rkward/commit/af7bfb897600fefba256f639937ee96b4dbd8ff1
diff --git a/rkward/autotests/core_test.cpp b/rkward/autotests/core_test.cpp
index 763f69e0..ab568685 100644
--- a/rkward/autotests/core_test.cpp
+++ b/rkward/autotests/core_test.cpp
@@ -243,7 +243,7 @@ private slots:
int cancelled_commands = 0;
int commands_out = 0;
for (int i = 0; i < 100; ++i) {
- runCommandAsync(new RCommand("Sys.sleep(.005)", RCommand::User | RCommand::PriorityCommand), nullptr, [&cancelled_commands, &commands_out](RCommand *command) {
+ runCommandAsync(new RCommand("Sys.sleep(.005)", RCommand::User), nullptr, [&cancelled_commands, &commands_out](RCommand *command) {
if (command->wasCanceled()) cancelled_commands++;
commands_out++;
});
diff --git a/rkward/rbackend/rkfrontendtransmitter.cpp b/rkward/rbackend/rkfrontendtransmitter.cpp
index c99822b8..9cd872b8 100644
--- a/rkward/rbackend/rkfrontendtransmitter.cpp
+++ b/rkward/rbackend/rkfrontendtransmitter.cpp
@@ -200,11 +200,8 @@ QString RKFrontendTransmitter::waitReadLine (QIODevice* con, int msecs) {
time.start();
QByteArray ret;
do {
- RK_DEBUG(RBACKEND, DL_DEBUG, "Time %d, buffer %d, available %d", QDateTime::currentMSecsSinceEpoch(), ret.length(), con->bytesAvailable());
ret.append(con->readLine());
- RK_DEBUG(RBACKEND, DL_DEBUG, "Time2 %d, buffer %d, available %d", QDateTime::currentMSecsSinceEpoch(), ret.length(), con->bytesAvailable());
if (ret.contains('\n')) break;
- RK_DEBUG(RBACKEND, DL_DEBUG, "Time3 %d", QDateTime::currentMSecsSinceEpoch());
con->waitForReadyRead(500);
} while(time.elapsed() < msecs);
return QString::fromLocal8Bit(ret);
More information about the rkward-tracker
mailing list