aboutsummaryrefslogtreecommitdiff
path: root/t/inotifywait-no-dereference-ignore-symlinked-file.t
blob: 1faa7ff056522f45f55da828d8b8fe76c7bc053b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

test_description='--no-dereference causes inotifywait to ignore events on symlink target'

. ./sharness.sh

run_() {
    export LD_LIBRARY_PATH="../../libinotifytools/src/.libs/"
    touch test &&
	ln -s test test-symlink &&
	{(sleep 1 && touch test)&} &&
    ../../src/.libs/inotifywait --quiet --no-dereference --timeout 2 test-symlink
}

test_expect_success 'Exit code 2 is returned' '
    test_expect_code 2 run_
'

test_done