From: Joel Rosdahl Date: Thu, 8 Nov 2012 19:54:31 +0000 (+0100) Subject: test: Fix Solaris /bin/sh issue X-Git-Tag: v3.2~75 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a47c21af196dba9e566183cfdb82900272ba2fd;p=thirdparty%2Fccache.git test: Fix Solaris /bin/sh issue --- diff --git a/test.sh b/test.sh index 9a516ce27..924b63500 100755 --- a/test.sh +++ b/test.sh @@ -81,7 +81,8 @@ checkstat() { } compare_file() { - if ! cmp -s "$1" "$2"; then + cmp -s "$1" "$2" + if [ $? -ne 0 ]; then test_failed "Files differ: $1 != $2" fi }