diff options
author | ze2j <46556066+ze2j@users.noreply.github.com> | 2024-07-27 12:48:54 +0200 |
---|---|---|
committer | ze2j <46556066+ze2j@users.noreply.github.com> | 2024-07-27 15:00:58 +0200 |
commit | 90c77c1f68889a8b95e0ef86d482b86aa6daa9ea (patch) | |
tree | 0d2d2835ebdfa87f8166ad199b4dd603311ba350 | |
parent | 607b230ffe120b2757c56bd3d52a7a0d4e502cfe (diff) | |
download | redot-engine-90c77c1f68889a8b95e0ef86d482b86aa6daa9ea.tar.gz |
Fix compilation failure in test_graph_node.h with disable_exceptions=false
-rw-r--r-- | tests/scene/test_graph_node.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/scene/test_graph_node.h b/tests/scene/test_graph_node.h index bf6cc9be09..7973ac1444 100644 --- a/tests/scene/test_graph_node.h +++ b/tests/scene/test_graph_node.h @@ -48,8 +48,10 @@ TEST_CASE("[GraphNode][SceneTree]") { test_node->add_child(test_child); // Test. - CHECK_NOTHROW_MESSAGE(test_node->remove_child(test_child)); + test_node->remove_child(test_child); + CHECK(test_node->get_child_count(false) == 0); + memdelete(test_child); memdelete(test_node); } } |