sapling/tests/test-bad-pull.t

22 lines
461 B
Perl
Raw Normal View History

#require serve killdaemons
#if windows
$ hg clone http://localhost:$HGPORT/ copy
abort: * (glob)
[255]
#else
2010-08-14 04:39:39 +04:00
$ hg clone http://localhost:$HGPORT/ copy
abort: error: Connection refused
2010-09-17 02:51:32 +04:00
[255]
#endif
2010-08-14 04:39:39 +04:00
$ test -d copy
[1]
2010-08-14 04:39:39 +04:00
$ python "$TESTDIR/dumbhttp.py" -p $HGPORT --pid dumb.pid
$ cat dumb.pid >> $DAEMON_PIDS
$ hg clone http://localhost:$HGPORT/foo copy2
abort: HTTP Error 404: * (glob)
[255]
$ "$TESTDIR/killdaemons.py" $DAEMON_PIDS