summaryrefslogtreecommitdiff
path: root/tests/test-inotify-issue1556.t
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-inotify-issue1556.t')
-rw-r--r--tests/test-inotify-issue1556.t31
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/test-inotify-issue1556.t b/tests/test-inotify-issue1556.t
new file mode 100644
index 0000000..ade628f
--- /dev/null
+++ b/tests/test-inotify-issue1556.t
@@ -0,0 +1,31 @@
+
+ $ "$TESTDIR/hghave" inotify || exit 80
+ $ hg init
+ $ touch a b
+ $ hg add a b
+ $ rm b
+
+status without inotify
+
+ $ hg st
+ A a
+ ! b
+ $ echo "[extensions]" >> $HGRCPATH
+ $ echo "inotify=" >> $HGRCPATH
+
+inserve
+
+ $ hg inserve -d --pid-file=hg.pid 2>&1
+ $ cat hg.pid >> "$DAEMON_PIDS"
+
+status
+
+ $ hg st
+ A a
+ ! b
+ ? hg.pid
+ $ sleep 1
+
+Are we able to kill the service? if not, the service died on some error
+
+ $ kill `cat hg.pid`