summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/tests/gdscript_test_runner.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2021-05-24 19:52:32 +0200
committerGitHub <noreply@github.com>2021-05-24 19:52:32 +0200
commit215e43242c2a5b2ec5a8ccb4d26d716f965cbbd9 (patch)
treee44aa26a8c2af357ab5f648e5de45ff73801be05 /modules/gdscript/tests/gdscript_test_runner.cpp
parentc321f6ff4742d72e1863c69702ea6af47066965c (diff)
parentea44744e2daf512ac97ba7176d1e65d77b4f8042 (diff)
downloadredot-engine-215e43242c2a5b2ec5a8ccb4d26d716f965cbbd9.tar.gz
Merge pull request #49037 from vnen/fix-callable-freed-crash
Diffstat (limited to 'modules/gdscript/tests/gdscript_test_runner.cpp')
-rw-r--r--modules/gdscript/tests/gdscript_test_runner.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/modules/gdscript/tests/gdscript_test_runner.cpp b/modules/gdscript/tests/gdscript_test_runner.cpp
index 76ae43e792..e20e427597 100644
--- a/modules/gdscript/tests/gdscript_test_runner.cpp
+++ b/modules/gdscript/tests/gdscript_test_runner.cpp
@@ -257,6 +257,7 @@ bool GDScriptTestRunner::make_tests() {
ERR_FAIL_COND_V_MSG(err != OK, false, "Could not open specified test directory.");
+ source_dir = dir->get_current_dir() + "/"; // Make it absolute path.
return make_tests_for_dir(dir->get_current_dir());
}
@@ -361,11 +362,9 @@ void GDScriptTest::error_handler(void *p_this, const char *p_function, const cha
break;
}
- builder.append("\n>> ");
- builder.append(p_function);
- builder.append("\n>> ");
+ builder.append("\n>> on function: ");
builder.append(p_function);
- builder.append("\n>> ");
+ builder.append("()\n>> ");
builder.append(String(p_file).trim_prefix(self->base_dir));
builder.append("\n>> ");
builder.append(itos(p_line));