diff options
author | Ted Ross <tross@apache.org> | 2013-05-31 13:44:15 +0000 |
---|---|---|
committer | Ted Ross <tross@apache.org> | 2013-05-31 13:44:15 +0000 |
commit | 6fb1a25229c26fc984713478108c38e908ebce5b (patch) | |
tree | 5f6b000ada2bef5b93d44df7b1d31fdc910ba452 | |
parent | 3bdb2423b7066eade1218d6dc4ea61f639117051 (diff) | |
download | qpid-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.c | 4 |
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); |