You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by mc...@apache.org on 2014/01/27 23:10:52 UTC

svn commit: r1561878 - /qpid/dispatch/trunk/tests/server_test.c

Author: mcpierce
Date: Mon Jan 27 22:10:52 2014
New Revision: 1561878

URL: http://svn.apache.org/r1561878
Log:
QPID-5518: Abort server test on error while writing data.

Previously, the return code was ignored. But if an error occurs then the
test will now abort.

Modified:
    qpid/dispatch/trunk/tests/server_test.c

Modified: qpid/dispatch/trunk/tests/server_test.c
URL: http://svn.apache.org/viewvc/qpid/dispatch/trunk/tests/server_test.c?rev=1561878&r1=1561877&r2=1561878&view=diff
==============================================================================
--- qpid/dispatch/trunk/tests/server_test.c (original)
+++ qpid/dispatch/trunk/tests/server_test.c Mon Jan 27 22:10:52 2014
@@ -96,7 +96,7 @@ static void ufd_handler(void *context, q
             sprintf(stored_error, "Expected Writable");
             qd_server_stop(qd);
         } else {
-            write(fd[1], "X", 1);
+            if (write(fd[1], "X", 1) < 0) abort();
 
             write_count++;
             if (write_count < OCTET_COUNT)



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org