diff options
author | Lorry <lorry@roadtrain.codethink.co.uk> | 2012-08-22 14:49:51 +0100 |
---|---|---|
committer | Lorry <lorry@roadtrain.codethink.co.uk> | 2012-08-22 14:49:51 +0100 |
commit | a498da43c7fdb9f24b73680c02a4a3588cc62d9a (patch) | |
tree | daf8119dae1749b5165b68033a1b23a7375ce9ce /tests/test-inotify-issue1208.t | |
download | mercurial-tarball-a498da43c7fdb9f24b73680c02a4a3588cc62d9a.tar.gz |
Tarball conversion
Diffstat (limited to 'tests/test-inotify-issue1208.t')
-rw-r--r-- | tests/test-inotify-issue1208.t | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/tests/test-inotify-issue1208.t b/tests/test-inotify-issue1208.t new file mode 100644 index 0000000..e8e5237 --- /dev/null +++ b/tests/test-inotify-issue1208.t @@ -0,0 +1,38 @@ + + $ "$TESTDIR/hghave" inotify || exit 80 + $ echo "[extensions]" >> $HGRCPATH + $ echo "inotify=" >> $HGRCPATH + $ p="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" + $ hg init $p + $ cd $p + +fail + + $ ln -sf doesnotexist .hg/inotify.sock + $ hg st + abort: inotify-server: cannot start: .hg/inotify.sock is a broken symlink + inotify-client: could not start inotify server: child process failed to start + $ hg inserve + abort: inotify-server: cannot start: .hg/inotify.sock is a broken symlink + [255] + $ rm .hg/inotify.sock + +inserve + + $ hg inserve -d --pid-file=hg.pid + $ cat hg.pid >> "$DAEMON_PIDS" + +status + + $ hg status + ? hg.pid + +if we try to start twice the server, make sure we get a correct error + + $ hg inserve -d --pid-file=hg2.pid + abort: inotify-server: cannot start: socket is already bound + abort: child process failed to start + [255] + $ kill `cat hg.pid` + + $ cd .. |