summaryrefslogtreecommitdiffstats
path: root/modules/gdscript
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-02-22 23:34:30 +0100
committerRémi Verschelde <rverschelde@gmail.com>2024-02-22 23:34:30 +0100
commit8a9c9ef94fb945c98b9b0590243037344ea4469e (patch)
tree9c2e1c797a49cf1f526eabf09722cae548646b2f /modules/gdscript
parent031ca87d839d4df22e2702da93a6eef055fc9ddc (diff)
parentd7a72d72e6106f10992ec678a4799fee135ddf3d (diff)
downloadredot-engine-8a9c9ef94fb945c98b9b0590243037344ea4469e.tar.gz
Merge pull request #88452 from AThousandShips/template_test
Fix running tests in template builds
Diffstat (limited to 'modules/gdscript')
-rw-r--r--modules/gdscript/tests/gdscript_test_runner_suite.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/gdscript/tests/gdscript_test_runner_suite.h b/modules/gdscript/tests/gdscript_test_runner_suite.h
index 5acf436e42..b2289ef9cc 100644
--- a/modules/gdscript/tests/gdscript_test_runner_suite.h
+++ b/modules/gdscript/tests/gdscript_test_runner_suite.h
@@ -37,6 +37,8 @@
namespace GDScriptTests {
+// TODO: Handle some cases failing on release builds. See: https://github.com/godotengine/godot/pull/88452
+#ifdef TOOLS_ENABLED
TEST_SUITE("[Modules][GDScript]") {
TEST_CASE("Script compilation and runtime") {
bool print_filenames = OS::get_singleton()->get_cmdline_args().find("--print-filenames") != nullptr;
@@ -68,6 +70,7 @@ func _init():
ref_counted->set_script(gdscript);
CHECK_MESSAGE(int(ref_counted->get_meta("result")) == 42, "The script should assign object metadata successfully.");
}
+#endif // TOOLS_ENABLED
TEST_CASE("[Modules][GDScript] Validate built-in API") {
GDScriptLanguage *lang = GDScriptLanguage::get_singleton();