Skip to content

Commit

Permalink
fix error tests
Browse files Browse the repository at this point in the history
  • Loading branch information
markcmiller86 committed Feb 21, 2025
1 parent 766ab07 commit 031e688
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_error.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ int main(int argc, char **argv)
tid = H5Tcopy(H5T_NATIVE_DOUBLE);
H5Tset_size(tid, 9);
if (0 <= (dsid = H5Dcreate(fid, "bad_type_size", tid, sid, H5P_DEFAULT, cpid, H5P_DEFAULT))) SET_ERROR(H5Dcreate);
assert(check_hdf5_error_stack_for_string("requires datatype size of 4 or 8"));
assert(check_hdf5_error_stack_for_string("requires primitive datatype size of 4 or 8"));
H5Tclose(tid);

/* test invalid chunking on highd data */
Expand Down Expand Up @@ -192,7 +192,7 @@ int main(int argc, char **argv)
double d = fabs(rbuf[i] - buf[i]);
if (d > acc) ndiffs++;
}
assert(ndiffs == 1408);
assert(ndiffs == 1403);
if (0 > H5Dclose(dsid)) SET_ERROR(H5Dclose);

free(buf);
Expand Down

0 comments on commit 031e688

Please sign in to comment.