Merge pull request #94834 from ze2j/fix_test_graph_node
Fix compilation failure in `test_graph_node.h` with `disable_exceptions=false`
This commit is contained in:
commit
036a3ef39c
|
@ -48,8 +48,10 @@ TEST_CASE("[GraphNode][SceneTree]") {
|
||||||
test_node->add_child(test_child);
|
test_node->add_child(test_child);
|
||||||
|
|
||||||
// Test.
|
// 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);
|
memdelete(test_node);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue