libuv/test
Julien Gilli ad20b96a8f test: refactor fs_event_close_in_callback
This change refactors the `fs_event_close_in_callback` test so that:

1. It creates directory entries instead of modifying them. This allows
the test to work on operating systems that use event ports to handle fs
events (e.g SmartOS and Solaris). When using event ports, watching
only a directory does not allow to receive events for files modified
within that directory, but events will be received for files _created_
within that directory.

2. it generates fs events _after_ the process entered the libuv event
loop. This is also needed to make the test work on operating systems
that use event ports to handle fs events (e.g SmartOS and Solaris),
because events are polled as part of running the event loop. That also
makes the test work on systems based on Kqueue and on AIX.

Fixes: https://github.com/libuv/libuv/pull/808
PR-URL: https://github.com/libuv/libuv/pull/1011
Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
2016-08-25 10:12:49 +01:00
..
fixtures
benchmark-async-pummel.c
benchmark-async.c
benchmark-fs-stat.c
benchmark-getaddrinfo.c
benchmark-list.h
benchmark-loop-count.c
benchmark-million-async.c
benchmark-million-timers.c
benchmark-multi-accept.c
benchmark-ping-pongs.c
benchmark-pound.c
benchmark-pump.c
benchmark-sizes.c
benchmark-spawn.c
benchmark-tcp-write-batch.c
benchmark-thread.c
benchmark-udp-pummel.c
blackhole-server.c
dns-server.c
echo-server.c
run-benchmarks.c
run-tests.c
runner-unix.c unix: expand range of values for usleep 2016-08-24 09:58:49 +01:00
runner-unix.h
runner-win.c
runner-win.h
runner.c test: improve tap output on test failures 2016-08-24 10:47:14 +01:00
runner.h
task.h
test-active.c
test-async-null-cb.c
test-async.c
test-barrier.c
test-callback-order.c
test-callback-stack.c
test-close-fd.c
test-close-order.c
test-condvar.c
test-connection-fail.c
test-cwd-and-chdir.c
test-default-loop-close.c
test-delayed-accept.c
test-dlerror.c
test-eintr-handling.c
test-embed.c build: GNU/kFreeBSD support 2016-08-20 08:55:30 +02:00
test-emfile.c zos: add support for new platform 2016-08-19 01:34:29 +02:00
test-error.c
test-fail-always.c
test-fs-event.c test: refactor fs_event_close_in_callback 2016-08-25 10:12:49 +01:00
test-fs-poll.c
test-fs.c zos: add support for new platform 2016-08-19 01:34:29 +02:00
test-get-currentexe.c
test-get-loadavg.c
test-get-memory.c
test-get-passwd.c
test-getaddrinfo.c
test-getnameinfo.c
test-getsockname.c
test-handle-fileno.c
test-homedir.c
test-hrtime.c
test-idle.c
test-ip4-addr.c
test-ip6-addr.c
test-ipc-send-recv.c
test-ipc.c
test-list.h unix,win: make on_alloc_cb failures more resilient 2016-08-17 09:57:55 +02:00
test-loop-alive.c
test-loop-close.c
test-loop-configure.c
test-loop-handles.c
test-loop-stop.c
test-loop-time.c
test-multiple-listen.c
test-mutexes.c
test-osx-select.c
test-pass-always.c
test-ping-pong.c
test-pipe-bind-error.c
test-pipe-close-stdout-read-stdin.c
test-pipe-connect-error.c
test-pipe-connect-multiple.c
test-pipe-connect-prepare.c
test-pipe-getsockname.c test: don't close CRT fd handed off to uv_pipe_t 2016-08-11 09:33:43 +01:00
test-pipe-pending-instances.c
test-pipe-sendmsg.c
test-pipe-server-close.c
test-pipe-set-non-blocking.c
test-platform-output.c
test-poll-close-doesnt-corrupt-stack.c
test-poll-close.c
test-poll-closesocket.c
test-poll.c build: GNU/kFreeBSD support 2016-08-20 08:55:30 +02:00
test-process-title.c zos: add support for new platform 2016-08-19 01:34:29 +02:00
test-queue-foreach-delete.c
test-ref.c zos: add support for new platform 2016-08-19 01:34:29 +02:00
test-run-nowait.c
test-run-once.c
test-semaphore.c
test-shutdown-close.c
test-shutdown-eof.c
test-shutdown-twice.c
test-signal-multiple-loops.c
test-signal.c
test-socket-buffer-size.c
test-spawn.c zos: add support for new platform 2016-08-19 01:34:29 +02:00
test-stdio-over-pipes.c
test-tcp-alloc-cb-fail.c unix,win: make on_alloc_cb failures more resilient 2016-08-17 09:57:55 +02:00
test-tcp-bind6-error.c
test-tcp-bind-error.c
test-tcp-close-accept.c
test-tcp-close-while-connecting.c test: make tcp_close_while_connecting more resilient 2016-08-19 00:54:42 +01:00
test-tcp-close.c
test-tcp-connect6-error.c
test-tcp-connect-error-after-write.c
test-tcp-connect-error.c
test-tcp-connect-timeout.c
test-tcp-create-socket-early.c
test-tcp-flags.c
test-tcp-oob.c
test-tcp-open.c
test-tcp-read-stop.c
test-tcp-shutdown-after-write.c
test-tcp-try-write.c
test-tcp-unexpected-read.c
test-tcp-write-after-connect.c
test-tcp-write-fail.c
test-tcp-write-queue-order.c unix,win: make on_alloc_cb failures more resilient 2016-08-17 09:57:55 +02:00
test-tcp-write-to-half-open-connection.c
test-tcp-writealot.c
test-thread-equal.c
test-thread.c
test-threadpool-cancel.c
test-threadpool.c
test-timer-again.c
test-timer-from-check.c
test-timer.c
test-tmpdir.c
test-tty.c build: GNU/kFreeBSD support 2016-08-20 08:55:30 +02:00
test-udp-alloc-cb-fail.c unix,win: make on_alloc_cb failures more resilient 2016-08-17 09:57:55 +02:00
test-udp-bind.c
test-udp-create-socket-early.c
test-udp-dgram-too-big.c
test-udp-ipv6.c build: GNU/kFreeBSD support 2016-08-20 08:55:30 +02:00
test-udp-multicast-interface6.c build: GNU/kFreeBSD support 2016-08-20 08:55:30 +02:00
test-udp-multicast-interface.c
test-udp-multicast-join6.c build: GNU/kFreeBSD support 2016-08-20 08:55:30 +02:00
test-udp-multicast-join.c
test-udp-multicast-ttl.c
test-udp-open.c
test-udp-options.c zos: add support for new platform 2016-08-19 01:34:29 +02:00
test-udp-send-and-recv.c
test-udp-send-immediate.c
test-udp-send-unreachable.c
test-udp-try-send.c
test-walk-handles.c
test-watcher-cross-stop.c zos: add support for new platform 2016-08-19 01:34:29 +02:00