diff tests/test-serve @ 12403:ba8850911703

test-serve: fix test for binding to low named port on solaris Solaris do not know the service called http, so we use echo instead. Trying to define KILLQUIETLY when running the hgserve function didn't set the value within the function. Now we set the variable before calling the function.
author Mads Kiilerich <mads@kiilerich.com>
date Sat, 25 Sep 2010 02:35:32 +0200
parents b6cc68ef2702
children fdb0983ad395
line wrap: on
line diff
--- a/tests/test-serve	Tue Sep 21 23:55:32 2010 +0200
+++ b/tests/test-serve	Sat Sep 25 02:35:32 2010 +0200
@@ -40,8 +40,10 @@
 echo % With -v and -p HGPORT2
 hgserve -p "$HGPORT2"
 
-echo '% With -v and -p http (should fail)'
-KILLQUIETLY=Y hgserve -p http; KILLQUIETLY=N
+echo '% With -v and -p echo (should fail because low port)'
+KILLQUIETLY=Y
+hgserve -p echo
+KILLQUIETLY=N
 
 echo % With --prefix foo
 hgserve --prefix foo