tests/test-inotify-issue1542.t
changeset 12455 92b2c876a79d
parent 7892 67e59a9886d5
child 18592 f7c4eb60b0c3
equal deleted inserted replaced
12454:9965b90c7ed7 12455:92b2c876a79d
       
     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   $ kill `cat hg.pid`