summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Ross <tross@apache.org>2013-05-31 13:44:15 +0000
committerTed Ross <tross@apache.org>2013-05-31 13:44:15 +0000
commit6fb1a25229c26fc984713478108c38e908ebce5b (patch)
tree5f6b000ada2bef5b93d44df7b1d31fdc910ba452
parent3bdb2423b7066eade1218d6dc4ea61f639117051 (diff)
downloadqpid-python-6fb1a25229c26fc984713478108c38e908ebce5b.tar.gz
NO-JIRA - Fixed a defect introduced in the last commit.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1488215 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--extras/dispatch/tests/server_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/extras/dispatch/tests/server_test.c b/extras/dispatch/tests/server_test.c
index 8c922a5eac..deb3ae78eb 100644
--- a/extras/dispatch/tests/server_test.c
+++ b/extras/dispatch/tests/server_test.c
@@ -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);