From 8d0bd383166f7ef80d79c551f4b8a829881a8460 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 29 Dec 2017 12:30:35 -0500 Subject: Remove invalid double free test --- src/sord_test.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/sord_test.c b/src/sord_test.c index 9bb39a5..1ab350a 100644 --- a/src/sord_test.c +++ b/src/sord_test.c @@ -429,18 +429,6 @@ main(int argc, char** argv) } sord_node_free(world, nil_node); - // Attempt to double-free a node - SordNode* garbage = sord_new_uri(world, USTR("urn:garbage")); - sord_node_free(world, garbage); - sord_world_set_error_sink(world, expected_error, NULL); - sord_node_free(world, garbage); - sord_world_set_error_sink(world, unexpected_error, NULL); - if (n_expected_errors != 2) { - return test_fail("Successfully freed node twice\n"); - } - - sord_world_set_error_sink(world, unexpected_error, NULL); - // Check node flags are set properly SordNode* with_newline = sord_new_literal(world, NULL, USTR("a\nb"), NULL); if (!(sord_node_get_flags(with_newline) & SERD_HAS_NEWLINE)) { -- cgit v1.2.1