more uncommented test code and whitespace cleanup
/* This is part of the netCDF package.
- Copyright 2018 University Corporation for Atmospheric Research/Unidata
+ Copyright 2020 University Corporation for Atmospheric Research/Unidata
See COPYRIGHT file for conditions of use.
Test HDF5 file code. These are not intended to be exhaustive tests,
but they use HDF5 the same way that netCDF-4 does, so if these
tests don't work, than netCDF-4 won't work either.
+
+ Ed Hartnett
*/
#include "h5_err_macros.h"
@@ -358,11 +360,11 @@ main()
if (H5Gclose(grpid) < 0) ERR;
if (H5Fclose(fileid) < 0) ERR;
-/* /\* Reopen the file and check it. *\/ */
-/* if ((fileid = H5Fopen(file_name, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) ERR; */
-/* if (H5Gget_num_objs(fileid, &num_obj) < 0) ERR; */
-/* if (num_obj) ERR; */
-/* if (H5Fclose(fileid) < 0) ERR; */
+ /* Reopen the file and check it. */
+ if ((fileid = H5Fopen(file_name, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) ERR;
+ if (H5Gget_num_objs(fileid, &num_obj) < 0) ERR;
+ if (num_obj) ERR;
+ if (H5Fclose(fileid) < 0) ERR;
/* Delete the huge data file we created. */
(void) remove(file_name);
