diff options
author | Tushar Gohad <tushar.gohad@intel.com> | 2014-09-30 07:24:24 -0700 |
---|---|---|
committer | Tushar Gohad <tushar.gohad@intel.com> | 2014-09-30 07:24:24 -0700 |
commit | f9e8e71763fef2d466a5d4ceb7015f3c452d67ca (patch) | |
tree | 080827917de63f92fb9959ca7e279a9ede831a16 /test | |
parent | b6b3ffb60bde3fe97877d8ce4047f0b0700c4a49 (diff) | |
download | liberasurecode-f9e8e71763fef2d466a5d4ceb7015f3c452d67ca.tar.gz |
Check decode error code during missing frags tests
Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/libec_slap.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test/libec_slap.c b/test/libec_slap.c index f7eb5ef..fb9e69a 100644 --- a/test/libec_slap.c +++ b/test/libec_slap.c @@ -55,7 +55,7 @@ void print_mask(unsigned long mask) unsigned long pos = 1; if (mask == 0) { - fprintf(stderr," No Missing fragments\n"); + fprintf(stderr," No Missing fragments"); return; } fprintf(stderr," Missing fragments = "); @@ -64,7 +64,6 @@ void print_mask(unsigned long mask) fprintf(stderr,"%d ",i); } } - fprintf(stderr,"\n"); } void missing_mask_to_array(long mask, int *missing) @@ -313,8 +312,11 @@ static int test_hd_code(struct ec_args *args, &out_data_len); free(frags.array); free(out_data); - fprintf(stderr," Decode Scenario:"); + + assert(rc == 0); + fprintf(stderr," Decode Scenario - "); print_mask(mask); + fprintf(stderr,": OK\n"); } for (j = 0; j < args->k; j++) { free(encoded_data[j]); |