1 IN: io.unix.linux.monitors.tests
2 USING: io.monitors tools.test io.files system sequences
3 continuations namespaces concurrency.count-downs kernel io
4 threads calendar prettyprint destructors io.timeouts ;
6 ! On Linux, a notification on the directory itself would report an invalid
9 [ ] [ "monitor-test-self" temp-file make-directories ] unit-test
12 [ ] [ "monitor-test-self" temp-file f <monitor> "m" set ] unit-test
14 [ ] [ "monitor-test-self" temp-file touch-file ] unit-test
17 "m" get next-change drop
18 [ "" = ] [ "monitor-test-self" temp-file = ] bi or
21 [ ] [ "m" get dispose ] unit-test
24 [ ] [ "monitor-test-self" temp-file t <monitor> "m" set ] unit-test
26 [ ] [ "monitor-test-self" temp-file touch-file ] unit-test
29 "m" get next-change drop
30 [ "" = ] [ "monitor-test-self" temp-file = ] bi or
33 [ ] [ "m" get dispose ] unit-test