summaryrefslogtreecommitdiffstats
path: root/test/ttsafe_acreate.c
diff options
context:
space:
mode:
authorFang Guo <fangguo@ncsa.uiuc.edu>2005-09-07 21:44:16 (GMT)
committerFang Guo <fangguo@ncsa.uiuc.edu>2005-09-07 21:44:16 (GMT)
commit629c693d822ff7ab140bd18fe5ef256bffb60322 (patch)
tree68b1a93dbe539acf27a126463c1ef889b42d6727 /test/ttsafe_acreate.c
parent3280e08b9baad039a929fcfb479aabc717bc2b70 (diff)
downloadhdf5-629c693d822ff7ab140bd18fe5ef256bffb60322.zip
hdf5-629c693d822ff7ab140bd18fe5ef256bffb60322.tar.gz
hdf5-629c693d822ff7ab140bd18fe5ef256bffb60322.tar.bz2
[svn-r11365] Purpose:
Add more assertion error check Description: Solution: Platforms tested: heping Misc. update:
Diffstat (limited to 'test/ttsafe_acreate.c')
-rw-r--r--test/ttsafe_acreate.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/test/ttsafe_acreate.c b/test/ttsafe_acreate.c
index 1ab54a8..987c145 100644
--- a/test/ttsafe_acreate.c
+++ b/test/ttsafe_acreate.c
@@ -144,10 +144,14 @@ void tts_acreate(void)
}
/* close remaining resources */
- H5Sclose(dataspace);
- H5Tclose(datatype);
- H5Dclose(dataset);
- H5Fclose(file);
+ ret=H5Sclose(dataspace);
+ assert(ret>=0);
+ ret=H5Tclose(datatype);
+ assert(ret>=0);
+ ret=H5Dclose(dataset);
+ assert(ret>=0);
+ ret=H5Fclose(file);
+ assert(ret>=0);
}
void *tts_acreate_thread(void *client_data)