diff options
author | Michael Adam <obnox@samba.org> | 2017-03-16 11:18:28 +0000 |
---|---|---|
committer | Andreas Schneider <asn@samba.org> | 2017-03-17 10:23:55 +0100 |
commit | 7ca7d61c07d9dc884f06d2c77879694deac77b90 (patch) | |
tree | 24c4ec09d4f3a41a48244d3cf176e44b796ad4e4 /tests/test_close_failure.c | |
parent | 6e1a3b50fb344107f7cfbcef35a4cf10c1e12113 (diff) | |
download | socket_wrapper-7ca7d61c07d9dc884f06d2c77879694deac77b90.tar.gz socket_wrapper-7ca7d61c07d9dc884f06d2c77879694deac77b90.tar.xz socket_wrapper-7ca7d61c07d9dc884f06d2c77879694deac77b90.zip |
tests: Fix test_close_failure test case
Found by valgrind.
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'tests/test_close_failure.c')
-rw-r--r-- | tests/test_close_failure.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/test_close_failure.c b/tests/test_close_failure.c index 0c9d6a7..8a6d40e 100644 --- a/tests/test_close_failure.c +++ b/tests/test_close_failure.c @@ -23,14 +23,12 @@ static int teardown(void **state) static void test_close_failure(void **state) { int s; - int rc; (void) state; /* unused */ - (void) s; /*set but not used */ s = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); - assert_int_not_equal(rc, -1); + assert_int_not_equal(s, -1); /* Do not close the socket here so that destructor * handles it and no hang should be observed.*/ |