Skip to content

Commit

Permalink
Fix build of mt_id_test when multithreading isnt enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
jhendersonHDF committed Feb 10, 2025
1 parent 6388975 commit 87b13b7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/mt_id_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -8574,6 +8574,9 @@ main(int argc, char **argv)
{
#ifdef H5_HAVE_MULTITHREAD
mt_test_params_t test_params;
herr_t (*init_func)(void) = init_globals;
#else
herr_t (*init_func)(void) = NULL;
#endif
H5E_auto2_t default_err_func;
void *default_err_data = NULL;
Expand All @@ -8585,7 +8588,7 @@ main(int argc, char **argv)
H5Eget_auto2(H5E_DEFAULT, &default_err_func, &default_err_data);

/* Initialize testing framework */
TestInit(argv[0], NULL, NULL, init_globals, NULL, 0);
TestInit(argv[0], NULL, NULL, init_func, NULL, 0);

/* Reset error stack printing function */
H5Eset_auto2(H5E_DEFAULT, default_err_func, default_err_data);
Expand Down

0 comments on commit 87b13b7

Please sign in to comment.