#
5bb19f35 |
| 17-Sep-2024 |
Edigleysson Silva (Edy) |
test: run android tests on ci (#4517)
|
#
d8669609 |
| 12-Oct-2023 |
Pleuvens |
test: switch from ASSERT_* to ASSERT_PTR_* (#4163) Also introduce a new ASSERT_PTR_LT macro.
|
#
011a1ac1 |
| 06-Oct-2023 |
Pleuvens |
test: switch to new-style ASSERT_EQ macros (#4159) Switch from old-style ASSERT macro to new-style ASSERT_EQ,... macros. Using new-style macros makes it easier to debug test failure
test: switch to new-style ASSERT_EQ macros (#4159) Switch from old-style ASSERT macro to new-style ASSERT_EQ,... macros. Using new-style macros makes it easier to debug test failures Fixes: https://github.com/libuv/libuv/issues/2974
show more ...
|
#
b60f08e7 |
| 12-Apr-2023 |
Trevor Norris |
test: add ASSERT_OK (#3957) The majority of uses for ASSERT_EQ are to check if the return value is 0. So make a macro specifically for this and make things easier to read.
|
#
cb5da592 |
| 14-Apr-2023 |
Ben Noordhuis |
test: don't use static buffer for formatting (#3953) Don't use a static buffer to hold human-readable "big" numbers. The buffer isn't big enough for benchmarks like fs_stat that pri
test: don't use static buffer for formatting (#3953) Don't use a static buffer to hold human-readable "big" numbers. The buffer isn't big enough for benchmarks like fs_stat that print a large number of them. Have the caller pass in a buffer instead.
show more ...
|
#
91a7e498 |
| 12-Mar-2023 |
Trevor Norris |
test: silence more valgrind warnings (#3917) Pass the loop to MAKE_VALGRIND_HAPPY() so it's explicit on which loop needs to be cleaned up. Since it asserts on uv_loop_close(), need to
test: silence more valgrind warnings (#3917) Pass the loop to MAKE_VALGRIND_HAPPY() so it's explicit on which loop needs to be cleaned up. Since it asserts on uv_loop_close(), need to remove a couple of those that were being done before the call. Cleanup where loop was assigned, so the entire test either uses loop or uv_default_loop(). Not both. Also take care of any reqs that may have been left uncleaned.
show more ...
|
#
2638237e |
| 21-Jan-2023 |
James McCoy |
build: add CI for OpenBSD and FreeBSD (#3548) Fixes: https://github.com/libuv/libuv/issues/3510
|
#
96637d03 |
| 09-Nov-2022 |
Santiago Gimeno |
win,test: change format of TEST_PIPENAME's So `WaitNamedPipe()` doesn't fail. Increase the number of clients in `pipe_connect_multiple` so `CreateFile()` returns `ERROR_PIPE_BUSY` and
win,test: change format of TEST_PIPENAME's So `WaitNamedPipe()` doesn't fail. Increase the number of clients in `pipe_connect_multiple` so `CreateFile()` returns `ERROR_PIPE_BUSY` and the codepath leading to `WaitNamedPipe()` is exercised.
show more ...
|
#
e9000066 |
| 21-Oct-2022 |
daomingq |
thread: add support for affinity (#3774) Backported thread affinity feature and related dependency commits from master. It will add support for those APIs: uv_cpumask_size, uv_thread
thread: add support for affinity (#3774) Backported thread affinity feature and related dependency commits from master. It will add support for those APIs: uv_cpumask_size, uv_thread_setaffinity, uv_thread_getaffinity. The supported platforms are Linux, Freebsd, and Windows. Empty implementations (returning UV_ENOTSUP) on non-supported platforms (such as OS X and AIX).
show more ...
|
#
495ffca2 |
| 15-Jul-2022 |
Ben Noordhuis |
win: remove stdint-msvc2008.h (#3673) Support for VS 2008 was removed two years ago in commit a779fccfd so this file can safely be deleted.
|
#
6564ccc9 |
| 09-Oct-2021 |
Jameson Nash |
asan: fix some tests (#3323) Previously they were just being run incorrectly, but nothing wrong with the test itself. We were also interpreting an ASAN failure as TEST_SKIP, so test
asan: fix some tests (#3323) Previously they were just being run incorrectly, but nothing wrong with the test itself. We were also interpreting an ASAN failure as TEST_SKIP, so test failures would not actually be reported as CI failures.
show more ...
|
Revision tags: v1.41.0, v1.40.0, v1.39.0, v1.38.1 |
|
#
285a5ea8 |
| 29-May-2020 |
Ondřej Surý |
test: fix test-udp-send-unreachable To properly handle sending UDP packet to unreachable address. PR-URL: https://github.com/libuv/libuv/pull/2872 Reviewed-By: Ben Noordhuis <in
test: fix test-udp-send-unreachable To properly handle sending UDP packet to unreachable address. PR-URL: https://github.com/libuv/libuv/pull/2872 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
show more ...
|
#
dde98158 |
| 06-Nov-2020 |
Jameson Nash |
test: ensure reliable floating point comparison Without `volatile`, the x87 hardware may re-organize the comparison math and end up with the wrong answer. Fixes: one bullet poin
test: ensure reliable floating point comparison Without `volatile`, the x87 hardware may re-organize the comparison math and end up with the wrong answer. Fixes: one bullet point item of https://github.com/libuv/libuv/issues/2655 and the tests from https://github.com/libuv/libuv/pull/849 in certain build configurations PR-URL: https://github.com/libuv/libuv/pull/2747 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
show more ...
|
Revision tags: v1.38.0, v1.37.0, v1.36.0 |
|
#
8d5af5e7 |
| 24-Mar-2020 |
Ben Noordhuis |
fs: fix utime/futime timestamp rounding errors `uv_fs_utime()` and `uv_fs_futime()` receive the timestamp as a `double` and then convert it to `struct timeval` or `struct timespec` w
fs: fix utime/futime timestamp rounding errors `uv_fs_utime()` and `uv_fs_futime()` receive the timestamp as a `double` and then convert it to `struct timeval` or `struct timespec` where necessary but the calculation for the sub-second part exhibited rounding errors for dates in the deep past or the far-flung future, causing the timestamps to be off by sometimes over half a second on unix, or to be reinterpreted as unsigned and end up off by more than just sign but many also decades. Fixes: https://github.com/nodejs/node/issues/32369 (partially) PR-URL: https://github.com/libuv/libuv/pull/2747 Co-authored-by: Jameson Nash <vtjnash@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
show more ...
|
#
904b1c9b |
| 12-Aug-2020 |
tjarlama <59913901+tjarlama@users.noreply.github.com> |
test: avoid double evaluation in ASSERT_BASE macro Passing expression as an argument to a function-like macro will replace all occurrence of the arguments with expressions during preproc
test: avoid double evaluation in ASSERT_BASE macro Passing expression as an argument to a function-like macro will replace all occurrence of the arguments with expressions during preprocessing. This result in multiple evaluation of the same expression and can slow-down the program or even change program state. Here ASSERT_BASE macro gets an expression involving a and b as first argument and macro definition has a print statement with a and b, which means there is double evaluation of a and b when the expression evaluates to false. To avoid double evaluation temporary variables are created to store results of a and b. Since the expression argument is dropped from ASSERT_BASE, the macro no longer works for string assertions. So a new macro, ASSERT_BASE_STR, is introduced to deal with strings. ASSERT_BASE can still work with pointers. Fixes: https://github.com/libuv/libuv/issues/2916 PR-URL: https://github.com/libuv/libuv/pull/2926 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Jameson Nash <vtjnash@gmail.com>
show more ...
|
#
72fe3543 |
| 22-Apr-2020 |
Ben Noordhuis |
unix,win: add uv_library_shutdown() Make it possible to explicitly tell libuv to release any resources it's still holding onto (memory, threads, file descriptors, etc.) Before t
unix,win: add uv_library_shutdown() Make it possible to explicitly tell libuv to release any resources it's still holding onto (memory, threads, file descriptors, etc.) Before this commit, cleanup was performed in various destructors. This commit centralizes the cleanup logic, enabling the addition of `uv_library_shutdown()`, but maintains the current observable behavior of cleaning up when libuv is unloaded by means of `dlclose(3)`. Fixes: https://github.com/libuv/libuv/issues/2763 PR-URL: https://github.com/libuv/libuv/pull/2764 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
show more ...
|
#
53caf044 |
| 14-Mar-2020 |
Santiago Gimeno |
test: add a bunch of ASSERT macros To make the debugging of test issues easier. The following integer macros are added: `ASSERT_EQ(a, b)`, `ASSERT_GE(a, b)`, `ASSERT_GT(a,
test: add a bunch of ASSERT macros To make the debugging of test issues easier. The following integer macros are added: `ASSERT_EQ(a, b)`, `ASSERT_GE(a, b)`, `ASSERT_GT(a, b)`, `ASSERT_LE(a, b)`, `ASSERT_LT(a, b)` and `ASSERT_NE(a, b)`. And its corresponding unsigned integer macros: `ASSERT_UINT64_EQ(a, b)`, `ASSERT_UINT64_GE(a, b)`, `ASSERT_UINT64_GT(a, b)`, `ASSERT_UINT64_LE(a, b)`, `ASSERT_UINT64_LT(a, b)` and `ASSERT_UINT64_NE(a, b)`. Also these macros for `NULL` and pointer checks: `ASSERT_NULL(a)`, `ASSERT_NOT_NULL(a)`, `ASSERT_PTR_EQ(a, b)` and `ASSERT_PTR_NE(a, b)`. And finally these macros for strings and buffers: `ASSERT_STR_EQ(a, b)`/`ASSERT_STR_NEQ(a, b)` that use the `strcmp()` call. `ASSERT_MEM_EQ(a, b)`/`ASSERT_MEM_NEQ(a, b)` and `ASSERT_MEM_HEX_EQ(a, b)`/`ASSERT_MEM_HEX_NEQ(a, b)` that use the `memcmp()` call. The former, prints the data in string format and the latter in hex format. These macros are used in the following way: ```c ASSERT_EQ(UV_EINVAL, uv_loop_close(&loop)); ``` With a sample output that would be as follows: ``` Assertion failed in test/test-loop-close.c on line 44: `UV_EINVAL == uv_loop_close(&loop)` (-22 == -16) ``` To view multiples examples if their use, the `test-ipc.c` file has been modified to use these macros. The `_ISOC99_SOURCE` is defined to support `inttypes.h` in `z/OS`. PR-URL: https://github.com/libuv/libuv/pull/2739 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
show more ...
|
Revision tags: v1.35.0, v1.34.2, v1.34.1 |
|
#
5b12c313 |
| 16-Dec-2019 |
Xu Meng |
test: skip some test cases on IBMi On IBMi, uv_uptime() and uv_fs_event_init() return UV_ENOSYS. Set NO_FS_EVENTS on IBMi. PR-URL: https://github.com/libuv/libuv/pull/2573 R
test: skip some test cases on IBMi On IBMi, uv_uptime() and uv_fs_event_init() return UV_ENOSYS. Set NO_FS_EVENTS on IBMi. PR-URL: https://github.com/libuv/libuv/pull/2573 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
show more ...
|
Revision tags: v1.34.0 |
|
#
8c73eee2 |
| 22-Nov-2019 |
cjihrig |
unix,win: add uv_sleep() This commit exposes the uv_sleep() function that previously only existed in the test runner. PR-URL: https://github.com/libuv/libuv/pull/2548 Review
unix,win: add uv_sleep() This commit exposes the uv_sleep() function that previously only existed in the test runner. PR-URL: https://github.com/libuv/libuv/pull/2548 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
show more ...
|
Revision tags: v1.33.1, v1.33.0, v1.32.0, v1.31.0, v1.30.1, v1.30.0 |
|
#
faa80060 |
| 16-Jun-2019 |
Nhan Khong |
test: fix gcc 8 warnings for tests In test-ipc.c, remove unnecessarily casting uv_stream_s to uv_pipe_s that makes gcc complain about stric-aliasing (-Wstrict-aliasing). In
test: fix gcc 8 warnings for tests In test-ipc.c, remove unnecessarily casting uv_stream_s to uv_pipe_s that makes gcc complain about stric-aliasing (-Wstrict-aliasing). In test-queue-foreach-delete.c, using C99 variadic macros to fix a gcc 8 warnings (-Wcast-function-type). PR-URL: https://github.com/libuv/libuv/pull/2344 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
show more ...
|
Revision tags: v1.29.1, v1.29.0, v1.28.0, v1.27.0 |
|
#
f62240b2 |
| 21-Feb-2019 |
Andrew Paprocki |
sunos: disable __attribute__((unused)) The Studio compiler prints out a warning when this attribute is used because it does not support it (at least as of the latest 12.6 version): h
sunos: disable __attribute__((unused)) The Studio compiler prints out a warning when this attribute is used because it does not support it (at least as of the latest 12.6 version): https://docs.oracle.com/cd/E77782_01/html/E77788/gjzke.html#scrolltoc PR-URL: https://github.com/libuv/libuv/pull/2200 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
show more ...
|
Revision tags: v1.26.0, v1.25.0, v1.24.1, v1.24.0 |
|
#
143da93e |
| 29-Oct-2018 |
Ben Noordhuis |
test,unix: fix race in test runner The test runner inserted a 250 ms delay to give helper processes time to settle. That's intrinsically race-y and caused tests to intermittently fai
test,unix: fix race in test runner The test runner inserted a 250 ms delay to give helper processes time to settle. That's intrinsically race-y and caused tests to intermittently fail on platforms like AIX. Instead of a fixed delay, pass a file descriptor to the helper process and wait until it closes the descriptor. That way we know for sure the process has started. Incidentally, this change reduces the running time of the test suite from 112 to 26 seconds on my machine. Fixes: https://github.com/libuv/libuv/issues/2041 PR-URL: https://github.com/libuv/libuv/pull/2056 Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
show more ...
|
Revision tags: v1.23.2, v1.23.1, v1.23.0, v1.22.0, v1.21.0 |
|
#
47dcc07c |
| 28-May-2018 |
Ben Noordhuis |
win: move stdint-msvc2008.h to include/uv/ Move it so that include/ contains uv.h and nothing more. PR-URL: https://github.com/libuv/libuv/pull/1850 Reviewed-By: Colin Ihrig <cj
win: move stdint-msvc2008.h to include/uv/ Move it so that include/ contains uv.h and nothing more. PR-URL: https://github.com/libuv/libuv/pull/1850 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
show more ...
|
Revision tags: v1.20.3, v1.20.2, v1.20.1, v1.20.0, v1.19.2, v1.19.1, v1.19.0, v1.18.0, v1.17.0, v1.16.1, v1.16.0, v1.15.0, v1.14.1, v1.14.0, v1.13.1, v1.13.0, v1.12.0 |
|
#
b01de734 |
| 10-Apr-2017 |
John Barboza |
zos: implement uv_fs_event* functions This commit uses the Register File Interest feature on z/OS to enable users to monitor file system events. The poll call is used to check for fi
zos: implement uv_fs_event* functions This commit uses the Register File Interest feature on z/OS to enable users to monitor file system events. The poll call is used to check for file descriptors as well as a message queue that z/OS will report file system events on. The last item on the list used by poll will contain the message queue id instead of a file descriptor. Limitation: Writes to a directory (that is, file creation and deletion) do not generate a change message for a registered directory. PR-URL: https://github.com/libuv/libuv/pull/1311 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
show more ...
|
#
62165535 |
| 07-Apr-2017 |
Brad King |
test: skip self-connecting tests on cygwin The cygwin runtime library fails to connect a socket client to a listening server within the same thread. Test cases that use this approac
test: skip self-connecting tests on cygwin The cygwin runtime library fails to connect a socket client to a listening server within the same thread. Test cases that use this approach hang while waiting for the connection to complete. This can be reproduced independent of libuv in a simple example using both socket/bind/listen and socket/connect in a single thread. Avoid this problem in our test suite by skipping such tests on cygwin. PR-URL: https://github.com/libuv/libuv/pull/1312 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
show more ...
|