diff options
Diffstat (limited to 'test/ttsafe_dcreate.c')
-rw-r--r-- | test/ttsafe_dcreate.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/ttsafe_dcreate.c b/test/ttsafe_dcreate.c index a3bc763..79ac55f 100644 --- a/test/ttsafe_dcreate.c +++ b/test/ttsafe_dcreate.c @@ -139,8 +139,10 @@ void tts_dcreate(void) if (datavalue != i) { TestErrPrintf("Wrong value read %d for dataset name %s - test failed\n", datavalue, dsetname[i]); - H5Dclose(dataset); - H5Fclose(file); + ret=H5Dclose(dataset); + assert(ret>=0); + ret=H5Fclose(file); + assert(ret>=0); return; } |