From 0a47c21af196dba9e566183cfdb82900272ba2fd Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Thu, 8 Nov 2012 20:54:31 +0100 Subject: [PATCH] test: Fix Solaris /bin/sh issue --- test.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 } -- 2.47.2