# HG changeset patch # User Patrick Mezard # Date 2007-08-06 07:57:23 # Node ID 1b970cdab695f618e871870a5bc8ccbf1cd0a654 # Parent 4cf6f8dbd1b4ac7a80136e7cc7546ac066df74a9 test-clone-failure: fake output upon fifo unavailabity diff --git a/tests/test-clone-failure b/tests/test-clone-failure --- a/tests/test-clone-failure +++ b/tests/test-clone-failure @@ -26,10 +26,15 @@ chmod 700 a rm -r a b # Source of wrong type -mkfifo a -hg clone a b -echo $? -rm a +if "$TESTDIR/hghave" -q fifo; then + mkfifo a + hg clone a b + echo $? + rm a +else + echo "abort: repository a not found!" + echo 255 +fi # Default destination, same directory mkdir q