Skip to content

Commit

Permalink
Merge pull request #94834 from ze2j/fix_test_graph_node
Browse files Browse the repository at this point in the history
Fix compilation failure in `test_graph_node.h` with `disable_exceptions=false`
  • Loading branch information
akien-mga committed Jul 28, 2024
2 parents e3f8732 + 90c77c1 commit 036a3ef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/scene/test_graph_node.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 036a3ef

Please sign in to comment.