Skip to content

Commit

Permalink
add missing test checks
Browse files Browse the repository at this point in the history
  • Loading branch information
byrnHDF committed Sep 30, 2024
1 parent 914fdd3 commit 73bc019
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions hl/test/test_ds.c
Original file line number Diff line number Diff line change
Expand Up @@ -1358,6 +1358,14 @@ test_char_attachscales(const char *fileext)
if (create_char_dataset(fid, "ac", 0) < 0)
goto out;

/* test finding dataset dsname */
if ((ds_existed = H5LTfind_dataset(fid, dsname)) < 0)
goto out;
if (ds_existed == 0) {
printf("Unexpected result: Dataset \"%s\" does exist\n", dsname);
goto out;
}

if ((did = H5Dopen2(fid, dsname, H5P_DEFAULT)) >= 0) {
snprintf(scalename, sizeof(scalename), "%s%s", DS_1_NAME, "ac");
if (test_attach_scale(fid, did, scalename, DIM0) < 0)
Expand Down

0 comments on commit 73bc019

Please sign in to comment.