浏览代码

GDScriptTestRunner: Fix compiler error output

rune-scape 1 年之前
父节点
当前提交
298904d74e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules/gdscript/tests/gdscript_test_runner.cpp

+ 1 - 1
modules/gdscript/tests/gdscript_test_runner.cpp

@@ -622,7 +622,7 @@ GDScriptTest::TestResult GDScriptTest::execute_test_code(bool p_is_generating) {
 		enable_stdout();
 		result.status = GDTEST_COMPILER_ERROR;
 		result.output = get_text_for_status(result.status) + "\n";
-		result.output = compiler.get_error();
+		result.output += compiler.get_error() + "\n";
 		if (!p_is_generating) {
 			result.passed = check_output(result.output);
 		}