"Fossies" - the Fresh Open Source Software Archive

Member "inotify-tools-3.20.11.0/t/inotifywait-no-dereference-respond-to-symlink-event.t" (13 Nov 2020, 430 Bytes) of package /linux/privat/inotify-tools-3.20.11.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/bin/sh
    2 
    3 test_description='--no-dereference causes inotifywait to respond to events on symlink'
    4 
    5 . ./sharness.sh
    6 
    7 run_() {
    8     export LD_LIBRARY_PATH="../../libinotifytools/src/.libs/"
    9     touch test &&
   10     ln -s test test-symlink &&
   11     {(sleep 1 && touch -h test-symlink)&} &&
   12     ../../src/.libs/inotifywait --quiet --no-dereference --timeout 2 test-symlink
   13 }
   14 
   15 test_expect_success 'Exit code 0 is returned' '
   16     run_
   17 '
   18 
   19 test_done