From 7c39de0b7d3183d113aca40a4805a3ca8e7bfb5d Mon Sep 17 00:00:00 2001 From: Matthew Larson Date: Thu, 11 Dec 2025 11:09:13 -0600 Subject: [PATCH 1/2] Add h5diff message about file object difference --- tools/src/h5diff/h5diff_common.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/src/h5diff/h5diff_common.c b/tools/src/h5diff/h5diff_common.c index ed2b33a89b4..2699d8844b6 100644 --- a/tools/src/h5diff/h5diff_common.c +++ b/tools/src/h5diff/h5diff_common.c @@ -504,6 +504,11 @@ print_info(diff_opt_t *opts) printf("Use -c for a list of objects.\n"); } } + + if (opts->contents == 0 && !opts->mode_verbose) { + printf("Files do not have the same set of objects\n"); + printf("Use -v for a list of objects.\n"); + } } /*------------------------------------------------------------------------- From 2a421957cc94132b57364c2af0382a81ad844210 Mon Sep 17 00:00:00 2001 From: Matthew Larson Date: Fri, 12 Dec 2025 09:41:02 -0600 Subject: [PATCH 2/2] Correct reference files --- tools/src/h5diff/h5diff_common.c | 2 +- tools/test/h5diff/expected/h5diff_11.txt | 2 ++ tools/test/h5diff/expected/h5diff_13.txt | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/src/h5diff/h5diff_common.c b/tools/src/h5diff/h5diff_common.c index 2699d8844b6..8c6321e2b67 100644 --- a/tools/src/h5diff/h5diff_common.c +++ b/tools/src/h5diff/h5diff_common.c @@ -506,7 +506,7 @@ print_info(diff_opt_t *opts) } if (opts->contents == 0 && !opts->mode_verbose) { - printf("Files do not have the same set of objects\n"); + printf("Files do not have the same set of objects.\n"); printf("Use -v for a list of objects.\n"); } } diff --git a/tools/test/h5diff/expected/h5diff_11.txt b/tools/test/h5diff/expected/h5diff_11.txt index e2e33fbe507..444db110a09 100644 --- a/tools/test/h5diff/expected/h5diff_11.txt +++ b/tools/test/h5diff/expected/h5diff_11.txt @@ -1,2 +1,4 @@ dataset: and 5 differences found +Files do not have the same set of objects. +Use -v for a list of objects. diff --git a/tools/test/h5diff/expected/h5diff_13.txt b/tools/test/h5diff/expected/h5diff_13.txt index 36676e9eac0..773022e8afe 100644 --- a/tools/test/h5diff/expected/h5diff_13.txt +++ b/tools/test/h5diff/expected/h5diff_13.txt @@ -8,3 +8,5 @@ position dset1 dset1 difference [ 1 1 ] 1 1.001 0.001 [ 2 1 ] 0 1 1 5 differences found +Files do not have the same set of objects. +Use -v for a list of objects.