diff options
author | David Robillard <d@drobilla.net> | 2017-12-29 12:30:35 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2017-12-29 12:30:55 -0500 |
commit | 8d0bd383166f7ef80d79c551f4b8a829881a8460 (patch) | |
tree | f04b0ac66bf0aef12174ff9cfafccb6ac156e212 | |
parent | adf8271471abcbdc91ce405887530fe951b468a5 (diff) | |
download | sord-8d0bd383166f7ef80d79c551f4b8a829881a8460.tar.gz sord-8d0bd383166f7ef80d79c551f4b8a829881a8460.tar.bz2 sord-8d0bd383166f7ef80d79c551f4b8a829881a8460.zip |
Remove invalid double free test
-rw-r--r-- | src/sord_test.c | 12 |
1 files changed, 0 insertions, 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)) { |