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

Implement test for H5Dget_storage_size #61

Merged
merged 3 commits into from
Sep 1, 2023

Conversation

mattjala
Copy link
Contributor

Different VOL connectors could allocate different amounts of storage for the same data, so these tests just check that get_storage_size doesn't fail and reports a nonzero quantity.

PART_ERROR(H5Dget_storage_size_contiguous);
}

if (H5Dget_storage_size(dset_id_contiguous) <= 0) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should only check == 0 for these calls. Since the return value is an hsize_t, this will probably generate compiler warnings about comparing an unsigned to a negative value

PART_ERROR(H5Dget_storage_size_chunked);
}

if (H5Dget_storage_size(dset_id_chunked) <= 0) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check for just 0 here as well

PART_ERROR(H5Dget_storage_size_filtered);
}

if (H5Dget_storage_size(dset_id_filtered) <= 0) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check for just 0 here as well

@jhendersonHDF jhendersonHDF merged commit 996dd87 into HDFGroup:master Sep 1, 2023
10 checks passed
@mattjala mattjala deleted the get_storage_size_test branch September 6, 2023 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants