Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix usage of h5_clean_files in t_pflush2.c #3807

Merged
merged 1 commit into from
Oct 31, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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