diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2022-06-16 13:29:59 +0300 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2022-06-16 13:29:59 +0300 |
commit | b339892668da20aea22a93668c82b87a38e4a97f (patch) | |
tree | 0e3ecf792ba094a223eb4f9cf6f1836a02861d83 /tests/test_bcj_exact_size.c | |
parent | Tests: tuktest.h: Add malloc wrapper with automatic freeing. (diff) | |
download | xz-b339892668da20aea22a93668c82b87a38e4a97f.tar.xz |
Tests: tuktest.h: Rename file_from_* and use tuktest_malloc there.
Diffstat (limited to 'tests/test_bcj_exact_size.c')
-rw-r--r-- | tests/test_bcj_exact_size.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/test_bcj_exact_size.c b/tests/test_bcj_exact_size.c index 83c88579..39b34c3d 100644 --- a/tests/test_bcj_exact_size.c +++ b/tests/test_bcj_exact_size.c @@ -79,7 +79,7 @@ test_empty_block(void) { // An empty file with one Block using PowerPC BCJ and LZMA2. size_t in_size; - uint8_t *empty_bcj_lzma2 = file_from_srcdir( + uint8_t *empty_bcj_lzma2 = tuktest_file_from_srcdir( "files/good-1-empty-bcj-lzma2.xz", &in_size); // Decompress without giving any output space. @@ -92,8 +92,6 @@ test_empty_block(void) LZMA_OK); assert_uint_eq(in_pos, in_size); assert_uint_eq(out_pos, 0); - - free(empty_bcj_lzma2); } |