tests/test-inotify-issue1208.t
branchstable
changeset 18453 f5fbe15ca744
parent 18323 7648b87e76db
parent 18452 8bd338c7c4c9
child 18454 a9475e8936bc
equal deleted inserted replaced
18323:7648b87e76db 18453:f5fbe15ca744
     1 
       
     2   $ "$TESTDIR/hghave" inotify || exit 80
       
     3   $ echo "[extensions]" >> $HGRCPATH
       
     4   $ echo "inotify=" >> $HGRCPATH
       
     5   $ p="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
       
     6   $ hg init $p
       
     7   $ cd $p
       
     8 
       
     9 fail
       
    10 
       
    11   $ ln -sf doesnotexist .hg/inotify.sock
       
    12   $ hg st
       
    13   abort: inotify-server: cannot start: .hg/inotify.sock is a broken symlink
       
    14   inotify-client: could not start inotify server: child process failed to start
       
    15   $ hg inserve
       
    16   abort: inotify-server: cannot start: .hg/inotify.sock is a broken symlink
       
    17   [255]
       
    18   $ rm .hg/inotify.sock
       
    19 
       
    20 inserve
       
    21 
       
    22   $ hg inserve -d --pid-file=hg.pid
       
    23   $ cat hg.pid >> "$DAEMON_PIDS"
       
    24 
       
    25 status
       
    26 
       
    27   $ hg status
       
    28   ? hg.pid
       
    29 
       
    30 if we try to start twice the server, make sure we get a correct error
       
    31 
       
    32   $ hg inserve -d --pid-file=hg2.pid
       
    33   abort: inotify-server: cannot start: socket is already bound
       
    34   abort: child process failed to start
       
    35   [255]
       
    36   $ kill `cat hg.pid`
       
    37 
       
    38   $ cd ..