qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcpie...@apache.org
Subject svn commit: r1561878 - /qpid/dispatch/trunk/tests/server_test.c
Date Mon, 27 Jan 2014 22:10:52 GMT
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


Mime
View raw message