summaryrefslogtreecommitdiffstats
path: root/tests/scene/test_instance_placeholder.h
diff options
context:
space:
mode:
authorA Thousand Ships <96648715+AThousandShips@users.noreply.github.com>2024-06-29 17:31:56 +0200
committerA Thousand Ships <96648715+AThousandShips@users.noreply.github.com>2024-06-29 18:35:50 +0200
commit17929a34430f526f01eb4ef29329d082643a6d03 (patch)
tree05c32c7386c1e04830e2648137991e2403200ed8 /tests/scene/test_instance_placeholder.h
parent25de53e147a04ba15afc461b3ad4aa1884ff927d (diff)
downloadredot-engine-17929a34430f526f01eb4ef29329d082643a6d03.tar.gz
[Tests] Fix unit tests in template builds
Diffstat (limited to 'tests/scene/test_instance_placeholder.h')
-rw-r--r--tests/scene/test_instance_placeholder.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/scene/test_instance_placeholder.h b/tests/scene/test_instance_placeholder.h
index d915c5d961..17f2151d54 100644
--- a/tests/scene/test_instance_placeholder.h
+++ b/tests/scene/test_instance_placeholder.h
@@ -333,6 +333,7 @@ TEST_CASE("[SceneTree][InstancePlaceholder] Instantiate from placeholder with ov
}
}
+#ifdef TOOLS_ENABLED
TEST_CASE("[SceneTree][InstancePlaceholder] Instance a PackedScene containing an InstancePlaceholder with no overrides") {
GDREGISTER_CLASS(_TestInstancePlaceholderNode);
@@ -526,6 +527,7 @@ TEST_CASE("[SceneTree][InstancePlaceholder] Instance a PackedScene containing an
DirAccess::remove_file_or_error(internal_path);
DirAccess::remove_file_or_error(main_path);
}
+#endif // TOOLS_ENABLED
} //namespace TestInstancePlaceholder