aboutsummaryrefslogtreecommitdiff
path: root/test/test-tcp-bind6-error.c
diff options
context:
space:
mode:
authortjarlama <tjarlama@gmail.com>2020-12-29 13:56:10 +0530
committerSantiago Gimeno <santiago.gimeno@gmail.com>2021-02-14 10:05:46 +0100
commit270d05189c4241cfa5d94182e85d1510f1ee19e0 (patch)
treee414cdb7c47fc42cf1ad5ccf5c4021018bc80fc0 /test/test-tcp-bind6-error.c
parentc3d08b5d63267c70554da081ce9f35dfb81132e2 (diff)
downloadlibuv-270d05189c4241cfa5d94182e85d1510f1ee19e0.tar.gz
libuv-270d05189c4241cfa5d94182e85d1510f1ee19e0.zip
test: move to ASSERT_NULL and ASSERT_NOT_NULL test macros
Moving to new style test macros will make debugging easier in case of test failure and improve redability. This commit will replace all ASSERT macros matching the statement: `ASSERT(identifier (== or !=) value);` to: `ASSERT_(NOT_)NULL(identifier);` Refs: https://github.com/libuv/libuv/issues/2974 PR-URL: https://github.com/libuv/libuv/pull/3081 Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Diffstat (limited to 'test/test-tcp-bind6-error.c')
-rw-r--r--test/test-tcp-bind6-error.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test-tcp-bind6-error.c b/test/test-tcp-bind6-error.c
index b762bcb3..86181b70 100644
--- a/test/test-tcp-bind6-error.c
+++ b/test/test-tcp-bind6-error.c
@@ -29,7 +29,7 @@ static int close_cb_called = 0;
static void close_cb(uv_handle_t* handle) {
- ASSERT(handle != NULL);
+ ASSERT_NOT_NULL(handle);
close_cb_called++;
}