HDFGroup / hdf5

Official HDF5® Library Repository
Other
543 stars 235 forks source link

Rework the TestExpress usage and refactor dead code #4590

Closed byrnHDF closed 1 week ago

byrnHDF commented 1 week ago

TestExpress had a global variable that was not used yet most tests always used a local var after calling GetTestExpress. Also there was dead code that was mostly just rename of functions to what they really do, but it was never finished.

h5_reset and h5_test_init were exactly the same, added GetTestExpress to that and replaced all uses of h5_reset. Also replaced clean test files call with the delete files and added the requirement for the caller to delete the fapl.

Now TestExpress is always available and initialized for use without the requirement to pass an extra argument to sub-functions tests.