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.
This commit is contained in:
Mads Kiilerich 2010-09-25 02:35:32 +02:00
parent a1632cd61b
commit ed06ff3f48
2 changed files with 6 additions and 4 deletions

View File

@ -40,8 +40,10 @@ hgserve
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

View File

@ -7,8 +7,8 @@ listening at http://localhost/ (bound to 127.0.0.1:HGPORT1)
% With -v and -p HGPORT2
listening at http://localhost/ (bound to 127.0.0.1:HGPORT2)
% errors
% With -v and -p http (should fail)
abort: cannot start server at 'localhost:80': Permission denied
% With -v and -p echo (should fail because low port)
abort: cannot start server at 'localhost:7': Permission denied
abort: child process failed to start
% errors
% With --prefix foo