test/cache_api: avoid false rpt_fcn pointer mismatch on Windows (#6274)

* test: avoid false function-pointer mismatch for rpt_fcn on Windows
* test: relax rpt_fcn comparison for MinGW
This commit is contained in:
phfix
2026-03-10 16:14:46 -05:00
committed by GitHub
parent a37ac086ae
commit 1dda3c51ad
2 changed files with 6 additions and 2 deletions
+2 -2
View File
@@ -83,11 +83,11 @@ jobs:
- name: Run Tests
run: |
ctest . --parallel 2 -C ${{ inputs.build_mode }} -E "cache_api|dt_arith|err_compat"
ctest . --parallel 2 -C ${{ inputs.build_mode }} -E "dt_arith|err_compat"
working-directory: ${{ runner.workspace }}/build
- name: Run Expected to Fail Tests
run: |
ctest . --parallel 2 -C ${{ inputs.build_mode }} -R "cache_api|dt_arith|err_compat"
ctest . --parallel 2 -C ${{ inputs.build_mode }} -R "dt_arith|err_compat"
working-directory: ${{ runner.workspace }}/build
continue-on-error: true
+4
View File
@@ -4990,8 +4990,12 @@ resize_configs_are_equal(const H5C_auto_size_ctl_t *a, const H5C_auto_size_ctl_t
{
if (a->version != b->version)
return (false);
else if ((a->rpt_fcn == NULL) != (b->rpt_fcn == NULL))
return (false);
#ifndef H5_HAVE_MINGW
else if (a->rpt_fcn != b->rpt_fcn)
return (false);
#endif
else if (compare_init && (a->set_initial_size != b->set_initial_size))
return (false);
else if (compare_init && (a->initial_size != b->initial_size))