diff options
Diffstat (limited to 'test/gen_file_image.c')
-rw-r--r-- | test/gen_file_image.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/gen_file_image.c b/test/gen_file_image.c index b5e07da..aa58bb3 100644 --- a/test/gen_file_image.c +++ b/test/gen_file_image.c @@ -47,7 +47,7 @@ main(void) /* Initialize the data */ if (NULL == (data = (int *)HDmalloc(SPACE_DIM1 * SPACE_DIM2 * sizeof(int)))) - TEST_ERROR + TEST_ERROR; for (i = 0; i < SPACE_DIM1; i++) for (j = 0; j < SPACE_DIM2; j++) @@ -55,27 +55,27 @@ main(void) /* Create the file */ if ((fid = H5Fcreate(TESTFILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) - FAIL_STACK_ERROR + FAIL_STACK_ERROR; /* Create the dataspace */ if ((sid = H5Screate_simple(SPACE_RANK, dims, NULL)) < 0) - FAIL_STACK_ERROR + FAIL_STACK_ERROR; /* Create the compressed dataset */ if ((did = H5Dcreate2(fid, "Dataset1", H5T_NATIVE_INT, sid, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) - FAIL_STACK_ERROR + FAIL_STACK_ERROR; /* Write the data to the dataset */ if (H5Dwrite(did, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, H5P_DEFAULT, data) < 0) - FAIL_STACK_ERROR + FAIL_STACK_ERROR; /* Close everything */ if (H5Dclose(did) < 0) - FAIL_STACK_ERROR + FAIL_STACK_ERROR; if (H5Sclose(sid) < 0) - FAIL_STACK_ERROR + FAIL_STACK_ERROR; if (H5Fclose(fid) < 0) - FAIL_STACK_ERROR + FAIL_STACK_ERROR; return EXIT_SUCCESS; |