summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/getname.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/getname.c b/test/getname.c
index a73bb78..dc1ddbe 100644
--- a/test/getname.c
+++ b/test/getname.c
@@ -2402,7 +2402,7 @@ test_main(hid_t file_id, hid_t fapl)
if(H5Fclose(file2_id) < 0) TEST_ERROR
/* Re-open the file and check that the anonymous datatypes persist */
- if( (file2_id = H5Fopen(filename2, H5F_ACC_RDONLY, H5P_DEFAULT)) < 0) TEST_ERROR
+ if( (file2_id = H5Fopen(filename2, H5F_ACC_RDONLY, fapl)) < 0) TEST_ERROR
/* Check the H5Iget_name does not return an error for anon committed datatypes */
if((dtype_anon = H5Oopen_by_addr(file2_id, oinfo.addr)) < 0) TEST_ERROR