From: Wayne Davison Date: Tue, 15 Jul 2008 05:47:03 +0000 (-0700) Subject: Added a "test_fail" function to 00-hello.test. X-Git-Tag: v3.1.0pre1~554 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f35798a57ed891efe18fb171e7004d77fcf51790;p=thirdparty%2Frsync.git Added a "test_fail" function to 00-hello.test. --- diff --git a/testsuite/00-hello.test b/testsuite/00-hello.test index d4a84752..ecb26348 100644 --- a/testsuite/00-hello.test +++ b/testsuite/00-hello.test @@ -1,5 +1,10 @@ #! /bin/sh +test_fail() { + echo "$@" >&2 + exit 1 +} + echo $0 running $RSYNC --version || test_fail '--version output failed'