Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions tools/src/h5diff/h5diff_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do you know whether "a list of objects" means objects in both files or just one file and, if so, which one and should it be both? If it should be both, then it can be a separate issue.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The -v option prints a list of the objects in both of the files and indicates which ones are not shared between the two files. I don't think the -v option needs any changes - what specific change are you requesting?

}
}

/*-------------------------------------------------------------------------
Expand Down
2 changes: 2 additions & 0 deletions tools/test/h5diff/expected/h5diff_11.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
dataset: </g1/dset1> and </g1/dset1>
5 differences found
Files do not have the same set of objects.
Use -v for a list of objects.
2 changes: 2 additions & 0 deletions tools/test/h5diff/expected/h5diff_13.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Loading