]> diplodocus.org Git - nmh/commit
Use cmp(1) to compare acheieved and expected test results.
authorLyndon Nerenberg <lyndon@minisun.(none)>
Thu, 31 Jan 2013 11:56:55 +0000 (03:56 -0800)
committerLyndon Nerenberg <lyndon@minisun.(none)>
Thu, 31 Jan 2013 11:56:55 +0000 (03:56 -0800)
commitbdb55520b3ca4ca887497822aee7d399337228aa
treeac13611736b389f1eff0990b8545950b45748730
parent674947e30fe81ede92efb0bc503d210d3aecf68e
Use cmp(1) to compare acheieved and expected test results.

'diff -c' on Solaris 11 generate a spurious 'No differences encountered'
message (on stdout, no less!) when the compared files are identical. This
changes the test logic to compare with 'cmp -s', and then perform a
'diff -c' if the results don't match expectations.
test/common.sh.in