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 | 87752ec109ece40b8839f66ca33c476f1f7d6cc9 (patch) | |
| tree | 91b992da447cf4678cb5554a6edb3e065900dc1a | |
| parent | ed96a2e7aa1615bc315fcc86864dc5fbcc9ce543 (diff) | |
| download | qpid-python-87752ec109ece40b8839f66ca33c476f1f7d6cc9.tar.gz | |
NO-JIRA - Fixed a defect introduced in the last commit.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1488215 13f79535-47bb-0310-9956-ffa450edef68
| -rw-r--r-- | qpid/extras/dispatch/tests/server_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qpid/extras/dispatch/tests/server_test.c b/qpid/extras/dispatch/tests/server_test.c index 8c922a5eac..deb3ae78eb 100644 --- a/qpid/extras/dispatch/tests/server_test.c +++ b/qpid/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); |
