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

Add test for H5Fget_obj_count with datatypes #3313

Closed
wants to merge 2 commits into from

Conversation

mattjala
Copy link
Contributor

@mattjala mattjala commented Jul 31, 2023

The existing tests for this function are pretty sparse, especially with respect to datatypes.

This is expected to reveal an issue where, when counting the objects in all files, copies of transient datatypes are counted as open objects. Expected behavior is that only committed datatypes are counted as objects.

@mattjala mattjala added Merge - To 1.10 Priority - 2. Medium ⏹ It would be nice to have this in the next release Component - C Library Core C library issues (usually in the src directory) Type - Bug / Bugfix Please report security issues to [email protected] instead of creating an issue on GitHub labels Jul 31, 2023
@mattjala mattjala force-pushed the test_get_datatype_count branch 2 times, most recently from 58825df to 6d9525a Compare August 1, 2023 14:28
@jhendersonHDF
Copy link
Collaborator

It's hard to tell exactly since the line numbers in CI builds don't seem to match up with the changes here, but based on the failure output it looks like this test is failing as expected. We should test this same change against 1.10 now to see if it fails in the same way.

@mattjala
Copy link
Contributor Author

mattjala commented Aug 1, 2023

It's hard to tell exactly since the line numbers in CI builds don't seem to match up with the changes here, but based on the failure output it looks like this test is failing as expected. We should test this same change against 1.10 now to see if it fails in the same way.

I ran the same test on 1.10.10 locally, and it fails in the same way.

@derobins
Copy link
Member

derobins commented Aug 3, 2023

  • This requires a library fix. We can't check in tests that fail.
  • This would change the semantics of the call since they are transient and not file objects.

@derobins derobins closed this Aug 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component - C Library Core C library issues (usually in the src directory) Priority - 2. Medium ⏹ It would be nice to have this in the next release Type - Bug / Bugfix Please report security issues to [email protected] instead of creating an issue on GitHub
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants