tests/test-inotify-issue1542.t
branchstable
changeset 21160 564f55b25122
parent 21028 a0f437e2f5a9
parent 21159 024f38f6d5f6
child 21161 ef59019f4771
equal deleted inserted replaced
21028:a0f437e2f5a9 21160:564f55b25122
     1 
       
     2   $ "$TESTDIR/hghave" inotify || exit 80
       
     3   $ hg init
       
     4   $ touch a
       
     5   $ mkdir dir
       
     6   $ touch dir/b
       
     7   $ touch dir/c
       
     8   $ echo "[extensions]" >> $HGRCPATH
       
     9   $ echo "inotify=" >> $HGRCPATH
       
    10   $ hg add dir/c
       
    11 
       
    12 inserve
       
    13 
       
    14   $ hg inserve -d --pid-file=hg.pid 2>&1
       
    15   $ cat hg.pid >> "$DAEMON_PIDS"
       
    16   $ hg st
       
    17   A dir/c
       
    18   ? a
       
    19   ? dir/b
       
    20   ? hg.pid
       
    21 
       
    22 moving dir out
       
    23 
       
    24   $ mv dir ../tmp-test-inotify-issue1542
       
    25 
       
    26 status
       
    27 
       
    28   $ hg st
       
    29   ! dir/c
       
    30   ? a
       
    31   ? hg.pid
       
    32   $ sleep 1
       
    33 
       
    34 Are we able to kill the service? if not, the service died on some error
       
    35 
       
    36   $ "$TESTDIR/killdaemons.py" hg.pid