Ver código fonte

Fix compilation failure in test_graph_node.h with disable_exceptions=false

ze2j 1 ano atrás
pai
commit
90c77c1f68
1 arquivos alterados com 3 adições e 1 exclusões
  1. 3 1
      tests/scene/test_graph_node.h

+ 3 - 1
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);
 	}
 }