]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
test: Fix Solaris /bin/sh issue
authorJoel Rosdahl <joel@rosdahl.net>
Thu, 8 Nov 2012 19:54:31 +0000 (20:54 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Thu, 8 Nov 2012 19:54:31 +0000 (20:54 +0100)
test.sh

diff --git a/test.sh b/test.sh
index 9a516ce27d477386683f89155f486e43618cb7d4..924b635000a0cc464632a83f476fdf9c5a5df7d3 100755 (executable)
--- 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
 }