The branch, master has been updated
       via  7ca7d61 tests: Fix test_close_failure test case
      from  6e1a3b5 swrap: use proper blocks for early returns

https://git.samba.org/?p=socket_wrapper.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 7ca7d61c07d9dc884f06d2c77879694deac77b90
Author: Michael Adam <ob...@samba.org>
Date:   Thu Mar 16 11:18:28 2017 +0000

    tests: Fix test_close_failure test case
    
    Found by valgrind.
    
    Signed-off-by: Michael Adam <ob...@samba.org>
    Reviewed-by: Andreas Schneider <a...@samba.org>

-----------------------------------------------------------------------

Summary of changes:
 tests/test_close_failure.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)


Changeset truncated at 500 lines:

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.*/


-- 
Socket Wrapper Repository

Reply via email to