From 2c71134aa40b7aeb092531403db0d5f43fd13a1f Mon Sep 17 00:00:00 2001 From: ThreeRhinosInAnElephantCostume Date: Mon, 13 Sep 2021 22:59:28 +0200 Subject: [PATCH] Fix an undefined behaviour --- modules/gdscript/tests/gdscript_test_runner.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/gdscript/tests/gdscript_test_runner.cpp b/modules/gdscript/tests/gdscript_test_runner.cpp index f65402b5786..c383830c826 100644 --- a/modules/gdscript/tests/gdscript_test_runner.cpp +++ b/modules/gdscript/tests/gdscript_test_runner.cpp @@ -415,6 +415,7 @@ GDScriptTest::TestResult GDScriptTest::execute_test_code(bool p_is_generating) { TestResult result; result.status = GDTEST_OK; result.output = String(); + result.passed = false; Error err = OK; @@ -498,6 +499,8 @@ GDScriptTest::TestResult GDScriptTest::execute_test_code(bool p_is_generating) { } // Script files matching this pattern are allowed to not contain a test() function. if (source_file.match("*.notest.gd")) { + enable_stdout(); + result.passed = check_output(result.output); return result; } // Test running.