diff options
author | Fang Guo <fangguo@ncsa.uiuc.edu> | 2005-09-07 21:44:16 (GMT) |
---|---|---|
committer | Fang Guo <fangguo@ncsa.uiuc.edu> | 2005-09-07 21:44:16 (GMT) |
commit | 629c693d822ff7ab140bd18fe5ef256bffb60322 (patch) | |
tree | 68b1a93dbe539acf27a126463c1ef889b42d6727 /test/ttsafe_cancel.c | |
parent | 3280e08b9baad039a929fcfb479aabc717bc2b70 (diff) | |
download | hdf5-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_cancel.c')
-rw-r--r-- | test/ttsafe_cancel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ttsafe_cancel.c b/test/ttsafe_cancel.c index b707240..e2f7cce 100644 --- a/test/ttsafe_cancel.c +++ b/test/ttsafe_cancel.c @@ -140,7 +140,7 @@ void *tts_cancel_thread(void UNUSED *arg) /* create a new dataset within the file */ dataset = H5Dcreate(cancel_file, DATASETNAME, datatype, dataspace, H5P_DEFAULT); - assert(dataset>=0); + assert(dataset>=0); /* If thread is cancelled, make cleanup call */ cleanup_structure = (cancel_cleanup_t*)malloc(sizeof(cancel_cleanup_t)); @@ -152,7 +152,7 @@ void *tts_cancel_thread(void UNUSED *arg) datavalue = 1; ret=H5Dwrite(dataset, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, H5P_DEFAULT, &datavalue); - assert(ret>=0); + assert(ret>=0); buffer = malloc(sizeof(int)); ret=H5Dread(dataset, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, H5P_DEFAULT, buffer); |