[education/rkward] tests: Update test standard

Thomas Friedrichsmeier null at kde.org
Thu May 1 12:34:07 BST 2025


Git commit 4e8da6dd60a383a86d1adb913ec1d415029574e0 by Thomas Friedrichsmeier.
Committed on 01/05/2025 at 11:34.
Pushed by tfry into branch 'master'.

Update test standard

M  +1    -1    tests/rkward_application_tests.R
M  +4    -0    tests/rkward_application_tests/rk_output_test.messages.txt

https://invent.kde.org/education/rkward/-/commit/4e8da6dd60a383a86d1adb913ec1d415029574e0

diff --git a/tests/rkward_application_tests.R b/tests/rkward_application_tests.R
index b2663b500..7643a91e3 100644
--- a/tests/rkward_application_tests.R
+++ b/tests/rkward_application_tests.R
@@ -300,7 +300,7 @@ suite <- new ("RKTestSuite", id="rkward_application_tests",
 		}),
 		new ("RKTest", id="rk_output_test", call=function () {
 			optwarn <- options("warn"=1) # This test leaks warning messages, otherwise...
-			on.exit(options("warn"=optwarn))
+			on.exit(options("warn"=optwarn$warn))
 			sync_outfile <- function() {
 				# Manually notify frontend of current output file.  This is usually suppressed for auto-texting, but important, here, since
 				# the frontend uses this to detect, which output is active.
diff --git a/tests/rkward_application_tests/rk_output_test.messages.txt b/tests/rkward_application_tests/rk_output_test.messages.txt
index 9e8e30e20..a049c0fe9 100644
--- a/tests/rkward_application_tests/rk_output_test.messages.txt
+++ b/tests/rkward_application_tests/rk_output_test.messages.txt
@@ -4,3 +4,7 @@ Error in .rk.call.nested("output", c("revert", .checkId(), if (is.null(discard))
   User canceled.
 Error in .rk.call.nested("output", c("clear", .checkId(), if (is.null(discard)) "ask" else if (isTRUE(discard)) "force" else "fail")) : 
   Output is not empty. Not clearing it.
+Warning in .rk.call.nested("output", c("close", .checkId(), if (is.null(discard)) "ask" else if (isTRUE(discard)) "force" else "fail")) :
+  Output has been activated, automatically
+Warning in .rk.call.nested("output", c("close", .checkId(), if (is.null(discard)) "ask" else if (isTRUE(discard)) "force" else "fail")) :
+  Output has been activated, automatically


More information about the rkward-tracker mailing list