Author: tross
Date: Fri May 31 13:44:15 2013
New Revision: 1488215

URL: http://svn.apache.org/r1488215
Log:
NO-JIRA - Fixed a defect introduced in the last commit.

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

Modified: qpid/trunk/qpid/extras/dispatch/tests/server_test.c
URL: 
http://svn.apache.org/viewvc/qpid/trunk/qpid/extras/dispatch/tests/server_test.c?rev=1488215&r1=1488214&r2=1488215&view=diff
==============================================================================
--- qpid/trunk/qpid/extras/dispatch/tests/server_test.c (original)
+++ qpid/trunk/qpid/extras/dispatch/tests/server_test.c Fri May 31 13:44:15 2013
@@ -161,6 +161,8 @@ static char* test_user_fd(void *context)
     stored_error[0] = 0x0;
 
     res = pipe(fd); // Don't use pipe2 because it's not available on RHEL5
+    if (res != 0) return "Error creating pipe2";
+
     for (int i = 0; i < 2; i++) {
         int flags = fcntl(fd[i], F_GETFL);
         flags |= O_NONBLOCK;
@@ -169,8 +171,6 @@ static char* test_user_fd(void *context)
             return "Failed to set socket to non-blocking";
         }
     }
-    
-    if (res != 0) return "Error creating pipe2";
 
     ufd_write = dx_user_fd(dx, fd[1], (void*) 1);
     ufd_read  = dx_user_fd(dx, fd[0], (void*) 0);



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to