mkdir /tmp/test_gamin
link /tmp/test_gamin_SHOULD_NOT_EXIST/bar /tmp/test_gamin/foo
connect test
monfile /tmp/test_gamin/foo
expect 1
wait
rmfile /tmp/test_gamin/foo
expect 0
disconnect
rmdir /tmp/test_gamin
