diff options
Diffstat (limited to 'test/gen_nullspace.c')
-rw-r--r-- | test/gen_nullspace.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/gen_nullspace.c b/test/gen_nullspace.c index 5892443..fd73f24 100644 --- a/test/gen_nullspace.c +++ b/test/gen_nullspace.c @@ -41,18 +41,18 @@ main(void) hid_t did; /* Dataset ID */ hid_t attr; /* Attribute ID */ herr_t ret; /* Generic return value */ - + /* Create the file */ fid = H5Fcreate(NULLFILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT); assert(fid>0); sid = H5Screate(H5S_NULL); assert(sid>0); - + /* Create dataset */ did = H5Dcreate(fid, NULLDATASET, H5T_NATIVE_UINT, sid, H5P_DEFAULT); assert(did>0); - + /* Close the dataset */ ret = H5Dclose(did); assert(ret>=0); @@ -64,23 +64,23 @@ main(void) /* Create an attribute for the group */ attr=H5Acreate(gid,NULLATTR,H5T_NATIVE_INT,sid,H5P_DEFAULT); assert(attr>0); - + /* Close attribute */ ret=H5Aclose(attr); assert(ret>=0); - + /* Close the group */ ret = H5Gclose(gid); assert(ret>=0); - + /* Close the dataspace */ ret = H5Sclose(sid); assert(ret>=0); - + /* Close the file */ ret = H5Fclose(fid); assert(ret>=0); - + return 0; } |