Skip to content

Commit

Permalink
Fix usage of h5_clean_files in t_pflush2.c
Browse files Browse the repository at this point in the history
  • Loading branch information
jhendersonHDF committed Oct 31, 2023
1 parent 87b3e7c commit 3a580e4
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions testpar/t_pflush2.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@

#include "h5test.h"

static const char *FILENAME[] = {"flush", "noflush", NULL};
static const char *FLUSH_FILENAME[] = {"flush", NULL};
static const char *NOFLUSH_FILENAME[] = {"noflush", NULL};

static int *data_g = NULL;

Expand Down Expand Up @@ -173,7 +174,7 @@ main(int argc, char *argv[])
goto error;

/* Check the case where the file was flushed */
h5_fixname(FILENAME[0], fapl_id1, name, sizeof(name));
h5_fixname(FLUSH_FILENAME[0], fapl_id1, name, sizeof(name));
if (check_test_file(name, sizeof(name), fapl_id1)) {
H5_FAILED();
goto error;
Expand All @@ -190,7 +191,7 @@ main(int argc, char *argv[])
H5Eget_auto2(H5E_DEFAULT, &func, NULL);
H5Eset_auto2(H5E_DEFAULT, NULL, NULL);

h5_fixname(FILENAME[1], fapl_id2, name, sizeof(name));
h5_fixname(NOFLUSH_FILENAME[0], fapl_id2, name, sizeof(name));
if (check_test_file(name, sizeof(name), fapl_id2)) {
if (mpi_rank == 0)
PASSED();
Expand All @@ -202,8 +203,8 @@ main(int argc, char *argv[])

H5Eset_auto2(H5E_DEFAULT, func, NULL);

h5_clean_files(&FILENAME[0], fapl_id1);
h5_clean_files(&FILENAME[1], fapl_id2);
h5_clean_files(FLUSH_FILENAME, fapl_id1);
h5_clean_files(NOFLUSH_FILENAME, fapl_id2);

if (data_g) {
free(data_g);
Expand Down

0 comments on commit 3a580e4

Please sign in to comment.