init.sh: make "compare /dev/null FILE" output more readable
authorJim Meyering <meyering@redhat.com>
Tue, 22 Nov 2011 13:51:45 +0000 (14:51 +0100)
committerJim Meyering <meyering@redhat.com>
Tue, 22 Nov 2011 19:24:22 +0000 (20:24 +0100)
commit337977d216e2759bc5b4dd3cbe223cbf8e6a9eb7
treea1304c4857cc31d5769483a5beefb3845252f496
parentff549c078493ea86e7bd87526db276a1b94a411a
init.sh: make "compare /dev/null FILE" output more readable

* tests/init.sh (compare_): Document the preferred order of arguments.
(emit_diff_u_header_): New function.
(compare_dev_null_): Emit a simulated diff, rather than just the
contents of the unexpected file.  Suggestion from Bruno Haible.
ChangeLog
tests/init.sh