diff options
author | Mark Storer <Mark.Storer@evault.com> | 2014-08-18 10:44:19 -0700 |
---|---|---|
committer | Mark Storer <Mark.Storer@evault.com> | 2014-08-18 10:44:19 -0700 |
commit | 8af4f83e86c71b91e0d246fb0bf5425e5b1ae3c2 (patch) | |
tree | 19beb15c26ba7e440d942e4ea2d2950b8484c9d2 /test | |
parent | 3338e25b9faeab6a9b3cd34c6f86865f4e0fa687 (diff) | |
download | liberasurecode-8af4f83e86c71b91e0d246fb0bf5425e5b1ae3c2.tar.gz |
- Cleaned up the documentation in erasurecode.h to ensure that it
follows a common format and that it accurately reflects the code.
- Cleaned up liberasurecode_instance_destroy to ensure that the return
code is correct and that it is not trying to free data that has
not been removed from the open instances.
- Updated the tests to assert that the liberasurecode_instance_destroy
method is return correctly.
Diffstat (limited to 'test')
-rw-r--r-- | test/liberasurecode_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/liberasurecode_test.c b/test/liberasurecode_test.c index cfa24bf..f82a87b 100644 --- a/test/liberasurecode_test.c +++ b/test/liberasurecode_test.c @@ -135,7 +135,7 @@ static void test_create_and_destroy_backend( return; } assert(desc > 0); - liberasurecode_instance_destroy(desc); + assert(0 == liberasurecode_instance_destroy(desc)); } static void encode_decode_test_impl(const char *backend, @@ -177,7 +177,7 @@ static void encode_decode_test_impl(const char *backend, assert(memcmp(decoded_data, orig_data, orig_data_size) == 0); if (desc) - liberasurecode_instance_destroy(desc); + assert(0 == liberasurecode_instance_destroy(desc)); free(orig_data); if (avail_frags != NULL) { |