summaryrefslogtreecommitdiff
path: root/cpp/test/unit
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2006-11-17 20:30:42 +0000
committerAlan Conway <aconway@apache.org>2006-11-17 20:30:42 +0000
commitd386f860a3404ec9735dab2730f8ed683446838c (patch)
tree2980f35a6add967ab376a08fad7cdef4acff5933 /cpp/test/unit
parentbf74286e6a5eba055fd8bf9410c325205b8595d5 (diff)
downloadqpid-python-d386f860a3404ec9735dab2730f8ed683446838c.tar.gz
Patch from Andrew Stitcher to fix APR #include using apr-config.
Fixed build problems with USE_APR= - builds OK but broker non-functional. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@476303 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/test/unit')
-rw-r--r--cpp/test/unit/qpid/posix/EpollEventChannelTest.cpp71
1 files changed, 0 insertions, 71 deletions
diff --git a/cpp/test/unit/qpid/posix/EpollEventChannelTest.cpp b/cpp/test/unit/qpid/posix/EpollEventChannelTest.cpp
deleted file mode 100644
index 14a09937f0..0000000000
--- a/cpp/test/unit/qpid/posix/EpollEventChannelTest.cpp
+++ /dev/null
@@ -1,71 +0,0 @@
-/*
- *
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
- */
-#include <qpid/posix/EpollEventChannel.h>
-#include <qpid_test_plugin.h>
-#include <iostream>
-
-using namespace qpid::sys;
-
-class EpollEventChannelTest : public CppUnit::TestCase
-{
- CPPUNIT_TEST_SUITE(EpollEventChannelTest);
- CPPUNIT_TEST(testRead);
- CPPUNIT_TEST_SUITE_END();
-
- public:
-
- void testRead()
- {
- static const std::string msg("hello");
- static const ssize_t size = msg.size()+1;
-
- int p[2];
- CHECK0(pipe(p));
-
- char readBuf[size];
- ReadEvent re(p[0], readBuf, size);
-
- CPPUNIT_ASSERT_EQUAL(size, write(p[1], msg.c_str(), size));
- CPPUNIT_ASSERT_EQUAL(size, read(p[0], readBuf, size));
- CPPUNIT_ASSERT_EQUAL(msg, std::string(readBuf));
-
- EpollEventChannel ec;
- ec.post(re);
-
-
- ReadEvent* e = static_cast<ReadEvent*>(ec.getEvent());
- CPPUNIT_ASSERT_EQUAL(&re, e);
-
- CPPUNIT_ASSERT_EQUAL(msg, std::string(readBuf))
-
- CPPUNIT_FAIL("Unfinished - not using ec");
- }
-
- void testPartialRead()
- {
- CPPUNIT_FAIL("Partial reads: shoul EQ collect full message?");
- }
-};
-
-// Make this test suite a plugin.
-CPPUNIT_PLUGIN_IMPLEMENT();
-CPPUNIT_TEST_SUITE_REGISTRATION(EpollEventChannelTest);
-