tests: Return an error if setenv() fails in test_max_sockets
authorAndreas Schneider <asn@samba.org>
Mon, 1 Oct 2018 19:28:27 +0000 (21:28 +0200)
committerAndreas Schneider <asn@samba.org>
Tue, 23 Oct 2018 13:39:45 +0000 (15:39 +0200)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
tests/test_max_sockets.c

index 00aa79b57d56b6b9817f8b4b0375debecfaa1c60..b49f9eb03459eec0c0670e088b8b667816297bcc 100644 (file)
@@ -22,7 +22,7 @@ static int setup(void **state)
 
        ret = setenv("SOCKET_WRAPPER_MAX_SOCKETS", str, 1);
 
-       return 0;
+       return ret;
 }
 
 static int teardown(void **state)