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

H5Pset_mdc_image_configTest1 is failing. #122

Open
gheber opened this issue Jul 7, 2017 · 2 comments
Open

H5Pset_mdc_image_configTest1 is failing. #122

gheber opened this issue Jul 7, 2017 · 2 comments

Comments

@gheber
Copy link
Member

gheber commented Jul 7, 2017

Assert.IsTrue(H5P.set_mdc_image_config(fapl, config_ptr) >= 0); fails. Why?

@gheber
Copy link
Member Author

gheber commented Apr 26, 2018

The native version of this test runs just fine:

#include "hdf5.h"
 
#include <assert.h>
 
void main()
{
  hid_t fapl;
  H5AC_cache_image_config_t conf;
 
  fapl = H5Pcreate(H5P_FILE_ACCESS);
  assert(fapl >= 0);
 
  assert(H5Pset_libver_bounds(fapl, H5F_LIBVER_LATEST, H5F_LIBVER_LATEST) >= 0);
 
  conf.version = H5AC__CURR_CACHE_IMAGE_CONFIG_VERSION;
  conf.entry_ageout = -1;
 
  assert(H5Pset_mdc_image_config(fapl, &conf) >= 0);
 
  assert(H5Pclose(fapl) >= 0);
 
  return;
}

@gheber
Copy link
Member Author

gheber commented Apr 26, 2018

The error stack of the HDF.PInvoke version reads:

  #000: D:\build\HDF5\1.10.2\hdf5-1.10.2\src\H5Pfapl.c line 1662 in H5Pset_mdc_image_config(): invalid metadata cache image configuration
    major: Invalid arguments to routine
    minor: Bad value
  #001: D:\build\HDF5\1.10.2\hdf5-1.10.2\src\H5AC.c line 2592 in H5AC_validate_cache_image_config(): error(s) in new cache image config
    major: Object cache
    minor: Bad value
  #002: D:\build\HDF5\1.10.2\hdf5-1.10.2\src\H5Cimage.c line 1730 in H5C_validate_cache_image_config(): unexpected value in entry_ageout field
    major: Object cache
    minor: Bad value
Failed                UnitTests.H5PTest.H5Pset_mdc_image_configTest1

@gheber gheber removed this from the HDF.PInvoke 1.10.2 milestone Apr 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant