libuv/test
cjihrig 278cfa0183
unix: handle src, dest same in uv_fs_copyfile()
This commit handles the case where the source and destination
are the same. This behavior was originally addressed in #2298,
but the test added in that PR doesn't validate the file size
after the operation. This commit also updates the test to check
for that case.

Refs: https://github.com/libuv/libuv/pull/2298
Refs: https://github.com/nodejs/node/issues/34624
PR-URL: https://github.com/libuv/libuv/pull/2947
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Jameson Nash <vtjnash@gmail.com>
2020-08-09 11:13:39 -04:00
..
fixtures
benchmark-async-pummel.c
benchmark-async.c
benchmark-fs-stat.c
benchmark-getaddrinfo.c
benchmark-list.h test: added udp ping benchmark (1,10,100 pingers) 2020-02-20 11:52:18 +01:00
benchmark-loop-count.c
benchmark-million-async.c
benchmark-million-timers.c
benchmark-multi-accept.c pipe: disallow listening on an IPC pipe 2020-01-31 11:09:16 +01:00
benchmark-ping-pongs.c
benchmark-ping-udp.c test: added udp ping benchmark (1,10,100 pingers) 2020-02-20 11:52:18 +01:00
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 unix,stream: clear read/write states on close/eof 2020-07-28 09:05:05 -04:00
run-benchmarks.c test: simplify platform_init() 2020-03-27 23:51:32 +01:00
run-tests.c test: simplify platform_init() 2020-03-27 23:51:32 +01:00
runner-unix.c test: simplify platform_init() 2020-03-27 23:51:32 +01:00
runner-unix.h
runner-win.c test: simplify platform_init() 2020-03-27 23:51:32 +01:00
runner-win.h
runner.c test: add UV_TIMEOUT_MULTIPLIER environment var 2020-02-28 13:50:28 -05:00
runner.h test: simplify platform_init() 2020-03-27 23:51:32 +01:00
task.h unix,win: add uv_library_shutdown() 2020-04-22 12:24:36 +02:00
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-connect-unspecified.c
test-connection-fail.c build: test on more platforms via QEMU in CI 2020-05-17 10:03:20 -04:00
test-cwd-and-chdir.c test: canonicalize argv[0] in exepath test 2020-03-27 23:51:22 +01:00
test-default-loop-close.c
test-delayed-accept.c
test-dlerror.c test: fix test failure under NetBSD and OpenBSD 2019-12-16 15:31:02 +01:00
test-eintr-handling.c
test-embed.c
test-emfile.c
test-env-vars.c win: support environment variables > 32767 chars 2020-04-28 20:11:12 +02:00
test-error.c
test-fail-always.c
test-fork.c
test-fs-copyfile.c unix: handle src, dest same in uv_fs_copyfile() 2020-08-09 11:13:39 -04:00
test-fs-event.c test: fix fs_event_watch_dir_recursive flakiness 2020-01-27 22:36:25 +01:00
test-fs-fd-hash.c
test-fs-open-flags.c
test-fs-poll.c
test-fs-readdir.c
test-fs.c test: support common user profile on IBMi 2020-05-17 09:41:55 -04:00
test-get-currentexe.c build: test on more platforms via QEMU in CI 2020-05-17 10:03:20 -04:00
test-get-loadavg.c
test-get-memory.c ibmi: set the amount of memory in use to zero 2020-03-10 11:00:03 +01:00
test-get-passwd.c build: test on more platforms via QEMU in CI 2020-05-17 10:03:20 -04:00
test-getaddrinfo.c build: add more failed test, for qemu version bump 2020-08-07 10:58:12 -04:00
test-gethostname.c test: pass test when hostname is single character 2020-04-06 12:57:32 +02:00
test-getnameinfo.c build: add more failed test, for qemu version bump 2020-08-07 10:58:12 -04:00
test-getsockname.c
test-getters-setters.c
test-gettimeofday.c
test-handle-fileno.c
test-homedir.c test: canonicalize argv[0] in exepath test 2020-03-27 23:51:22 +01:00
test-hrtime.c
test-idle.c
test-idna.c
test-ip4-addr.c
test-ip6-addr.c
test-ipc-heavy-traffic-deadlock-bug.c
test-ipc-send-recv.c
test-ipc.c test: add a bunch of ASSERT macros 2020-03-27 14:51:49 +01:00
test-list.h test: give hrtime test a custom 20s timeout 2020-08-06 11:42:08 -04: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-metrics.c core: add API to measure event loop idle time 2020-08-04 10:31:42 -04:00
test-multiple-listen.c
test-mutexes.c
test-not-readable-nor-writable-on-read-error.c unix,stream: clear read/write states on close/eof 2020-07-28 09:05:05 -04:00
test-not-readable-on-eof.c unix,stream: clear read/write states on close/eof 2020-07-28 09:05:05 -04:00
test-not-writable-after-shutdown.c unix,stream: clear read/write states on close/eof 2020-07-28 09:05:05 -04:00
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-pipe-pending-instances.c
test-pipe-sendmsg.c
test-pipe-server-close.c
test-pipe-set-fchmod.c
test-pipe-set-non-blocking.c
test-platform-output.c build: test on more platforms via QEMU in CI 2020-05-17 10:03:20 -04:00
test-poll-close-doesnt-corrupt-stack.c test: fix -fno-common build errors 2020-01-10 11:09:04 -05:00
test-poll-close.c
test-poll-closesocket.c test: fix -fno-common build errors 2020-01-10 11:09:04 -05:00
test-poll-oob.c
test-poll.c test: skip poll_duplex and poll_unidirectional on PASE 2020-04-20 09:45:26 -04:00
test-process-priority.c
test-process-title-threadsafe.c test: fix thread race in process_title_threadsafe 2020-08-06 10:18:29 +02:00
test-process-title.c unix: fix size check in uv_get_process_title() 2020-02-08 12:28:34 +01:00
test-queue-foreach-delete.c
test-random.c
test-ref.c
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: skip signal_multiple_loops test on QEMU 2020-06-02 10:35:17 -04:00
test-signal-pending-on-close.c unix: fix signal handle closing deferral 2020-03-10 10:58:29 +01:00
test-signal.c
test-socket-buffer-size.c
test-spawn.c test: support common user profile on IBMi 2020-05-17 09:41:55 -04:00
test-stdio-over-pipes.c win,pipe: ensure req->event_handle is defined 2020-02-27 09:12:52 +01:00
test-strscpy.c
test-tcp-alloc-cb-fail.c
test-tcp-bind6-error.c
test-tcp-bind-error.c
test-tcp-close-accept.c
test-tcp-close-reset.c
test-tcp-close-while-connecting.c
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-start.c win,tcp: avoid reinserting a pending request (#2688) 2020-07-28 13:59:08 -04:00
test-tcp-read-stop.c
test-tcp-shutdown-after-write.c
test-tcp-try-write-error.c
test-tcp-try-write.c
test-tcp-unexpected-read.c
test-tcp-write-after-connect.c build: test on more platforms via QEMU in CI 2020-05-17 10:03:20 -04:00
test-tcp-write-fail.c
test-tcp-write-queue-order.c
test-tcp-write-to-half-open-connection.c
test-tcp-writealot.c
test-thread-equal.c
test-thread.c build: add more failed test, for qemu version bump 2020-08-07 10:58:12 -04:00
test-threadpool-cancel.c
test-threadpool.c
test-timer-again.c
test-timer-from-check.c
test-timer.c
test-tmpdir.c test: canonicalize argv[0] in exepath test 2020-03-27 23:51:22 +01:00
test-tty-duplicate-key.c
test-tty-escape-sequence-processing.c win,tty: Added set cursor style to CSI sequences 2020-02-29 14:11:36 +09:00
test-tty.c build: add more failed test, for qemu version bump 2020-08-07 10:58:12 -04:00
test-udp-alloc-cb-fail.c
test-udp-bind.c
test-udp-connect.c test: skip some UDP tests on IBMi 2020-02-28 11:51:36 +01:00
test-udp-create-socket-early.c
test-udp-dgram-too-big.c
test-udp-ipv6.c test,udp6: fix udp_ipv6 test flakiness 2020-01-27 14:58:56 -05:00
test-udp-mmsg.c udp: add uv_udp_using_recvmmsg query 2020-07-28 23:28:18 -04:00
test-udp-multicast-interface6.c build: test on more platforms via QEMU in CI 2020-05-17 10:03:20 -04:00
test-udp-multicast-interface.c build: test on more platforms via QEMU in CI 2020-05-17 10:03:20 -04:00
test-udp-multicast-join6.c build: test on more platforms via QEMU in CI 2020-05-17 10:03:20 -04:00
test-udp-multicast-join.c test: fix test failure under NetBSD and OpenBSD 2019-12-16 15:31:02 +01:00
test-udp-multicast-ttl.c
test-udp-open.c
test-udp-options.c build: test on more platforms via QEMU in CI 2020-05-17 10:03:20 -04:00
test-udp-send-and-recv.c
test-udp-send-hang-loop.c
test-udp-send-immediate.c
test-udp-send-unreachable.c
test-udp-sendmmsg-error.c udp: fix write_queue cleanup on sendmmsg error 2020-07-02 21:29:42 +02:00
test-udp-try-send.c
test-uname.c
test-walk-handles.c
test-watcher-cross-stop.c test: skip some UDP tests on IBMi 2020-02-28 11:51:36 +01:00