summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2021-11-30 17:29:59 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2021-11-30 17:29:59 -0800
commitf17b241220fef63a32d1b7329edfbcf6f435fabe (patch)
treebba5f47b4a2f457a2647796dcd6a7d62d72cd641
parent6ad2fc509b55003a10fe9d973e2f8672946d4180 (diff)
downloadxorg-app-xauth-f17b241220fef63a32d1b7329edfbcf6f435fabe.tar.gz
tests: report failure if stderr has unexpected output
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rwxr-xr-xtests/test_xauth7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/test_xauth b/tests/test_xauth
index e04d13c..3278291 100755
--- a/tests/test_xauth
+++ b/tests/test_xauth
@@ -25,7 +25,12 @@ for script in `ls -1 ${testsrc}/*.script | sort` ; do
diff out.stderr ${testsrc}/$base.stderr
ret_stderr=$?
else
- ret_stderr=0
+ if [ -s out.stderr ] ; then
+ diff out.stderr /dev/null
+ ret_stderr=1
+ else
+ ret_stderr=0
+ fi
fi
if [ $ret_stdout -eq 0 -a $ret_stderr -eq 0 ]; then