I am using h5diff in 1.10.4 to ensure some endianess funnies I need to deal with in ZFP filter are being handled correctly. Part of that test invovles h5diff’ing ZFP compressed datasets from big endian and small endian machines. I am getting an exit code of
2 when there are zero diffs. This is problematic because I want to test h5diff error code to know if there are diffs. Am I using return code from h5diff incorrect? Has this behavior been changed?
env LD_LIBRARY_PATH=/Users/miller86/silo/hdf5-1.10.4/build_serial/my_install/lib: HDF5_PLUGIN_PATH=../src/plugin /Users/miller86/silo/hdf5-1.10.4/build_serial/my_install/bin/h5diff -v -d 0.00001 test_zfp_le.h5 test_zfp_be.h5 compressed compressed dataset: </compressed> and </compressed> Warning: different storage datatype </compressed> has file datatype H5T_IEEE_F64LE </compressed> has file datatype H5T_IEEE_F64BE 0 differences found [scratlantis:zfp_filter/H5Z-ZFP/test] miller86% echo $? 2
I should mention, unix diff tools return 0 on no diffs and non-zero (e.g. 1) on diffs and 2 I think if some kind of error occurs. I think h5diff should behave similarly.