Add concept of expected-failure.
authorMartin Pool <mbp@samba.org>
Fri, 11 Jan 2002 08:01:05 +0000 (08:01 +0000)
committerMartin Pool <mbp@samba.org>
Fri, 11 Jan 2002 08:01:05 +0000 (08:01 +0000)
runtests.sh
testsuite/rsync.fns

index 6212121..9a9b07d 100755 (executable)
@@ -209,6 +209,13 @@ do
        skipped=`expr $skipped + 1`
        discard_scratch
        ;;
+    78)
+        # It failed, but we expected that.  don't dump out error logs, 
+       # because most users won't want to see them.  But do leave
+       # the working directory around.
+       echo "XFAIL   $testbase"
+       failed=`expr $failed + 1`
+       ;;
     *)
        echo "FAIL    $testbase"
        echo "----- $testbase failed: log follows"
index 2d27a8c..165dfa0 100644 (file)
@@ -222,5 +222,13 @@ test_fail() {
     exit 1
 }
 
+# It failed, but we expected that.  don't dump out error logs, 
+# because most users won't want to see them.  But do leave
+# the working directory around.
+test_xfail() {
+    echo "$@" >&2
+    exit 78
+}
+
 # be reproducible
 umask 077
\ No newline at end of file