changeset 5087:1b970cdab695

test-clone-failure: fake output upon fifo unavailabity
author Patrick Mezard <pmezard@gmail.com>
date Mon, 06 Aug 2007 09:57:23 +0200
parents 4cf6f8dbd1b4
children 7e2385a31933
files tests/test-clone-failure
diffstat 1 files changed, 9 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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