diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/dsets.c | 6 | ||||
-rw-r--r-- | test/tattr.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/test/dsets.c b/test/dsets.c index d1f9706..898e546 100644 --- a/test/dsets.c +++ b/test/dsets.c @@ -9762,14 +9762,14 @@ main(void) nerrors += (test_append_sequence_1d(my_fapl) < 0 ? 1 : 0); nerrors += (test_append_sequence_2d(my_fapl) < 0 ? 1 : 0); nerrors += (test_set_get(my_fapl) < 0 ? 1 : 0); - exit(0); + if(H5Fclose(file) < 0) goto error; } /* end for */ /* Close 2nd FAPL */ if(H5Pclose(fapl2) < 0) TEST_ERROR - +#if 0 /* Tests that do not use files */ nerrors += (test_scatter() < 0 ? 1 : 0); nerrors += (test_gather() < 0 ? 1 : 0); @@ -9778,7 +9778,7 @@ main(void) /* Verify symbol table messages are cached */ nerrors += (h5_verify_cached_stabs(FILENAME, fapl) < 0 ? 1 : 0); - +#endif if(nerrors) goto error; printf("All dataset tests passed.\n"); diff --git a/test/tattr.c b/test/tattr.c index 25e8241..6556e09 100644 --- a/test/tattr.c +++ b/test/tattr.c @@ -10118,7 +10118,7 @@ test_attr_bug5(hid_t fcpl, hid_t fapl) /* Open the datatype attribute twice */ aidt1 = H5Aopen(tid1, BUG3_ATTR_NAME, H5P_DEFAULT); CHECK(aidt1, FAIL, "H5Aopen"); - aidt2 = H5Aopen(tid1, BUG3_ATTR_NAME, H5P_DEFAULT); + aidt2 = H5Aopen(tid2, BUG3_ATTR_NAME, H5P_DEFAULT); CHECK(aidt2, FAIL, "H5Aopen"); /* Close all attributes */ |