Skip to content

Commit

Permalink
Remove redundant file cleanup status check
Browse files Browse the repository at this point in the history
  • Loading branch information
jhendersonHDF committed Nov 25, 2024
1 parent 1044b04 commit cf1787a
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions test/API/H5_api_async_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -2678,16 +2678,14 @@ test_file_reopen(const void H5_ATTR_UNUSED *params)
static void
test_file_cleanup(const void H5_ATTR_UNUSED *params)
{
if (GetTestCleanup()) {
char file_name[64];
int i;
char file_name[64];
int i;

remove_test_file(NULL, ASYNC_API_TEST_FILE);
remove_test_file(NULL, ASYNC_API_TEST_FILE);

for (i = 0; i <= max_printf_file; i++) {
snprintf(file_name, sizeof(file_name), ASYNC_API_TEST_FILE_PRINTF, i);
remove_test_file(NULL, file_name);
}
for (i = 0; i <= max_printf_file; i++) {
snprintf(file_name, sizeof(file_name), ASYNC_API_TEST_FILE_PRINTF, i);
remove_test_file(NULL, file_name);
}
}

Expand Down

0 comments on commit cf1787a

Please sign in to comment.