diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/liberasurecode_test.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/liberasurecode_test.c b/test/liberasurecode_test.c index 83fa072..b5dbe2e 100644 --- a/test/liberasurecode_test.c +++ b/test/liberasurecode_test.c @@ -437,6 +437,11 @@ static void test_decode_invalid_args() // force_metadata_checks results in EINSUFFFRAGS assert(rc == -EINSUFFFRAGS); + rc = liberasurecode_decode(desc, avail_frags, num_avail_frags, + strlen(fake_data), 0, + &decoded_data, &decoded_data_len); + assert(rc == -EBADHEADER); + // test with num_fragments < (k) num_avail_frags = create_fake_frags_no_meta(&avail_frags, (null_args.k - 1), " ", 1); |