messaging: Fix CID 1373625 Unused value
authorVolker Lendecke <vl@samba.org>
Wed, 12 Oct 2016 10:21:36 +0000 (12:21 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 14 Oct 2016 19:45:08 +0000 (21:45 +0200)
Hmm. I wonder how that cut&paste happened...

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/lib/messaging/tests/messaging.c

index 783850ae326269a828a44020d956df1ec38a3fc6..ba58978828808e8fbd683ed43ffff93a13a5fc24 100644 (file)
@@ -171,6 +171,7 @@ static bool test_messaging_overflow(struct torture_context *tctx)
                } while ((nwritten == -1) && (errno == EINTR));
 
                ret = close(down_pipe[1]);
+               torture_assert(tctx, ret == 0, "close failed");
 
                do {
                        nread = read(down_pipe[0], &c, 1);