summaryrefslogtreecommitdiffstats
path: root/test/source/io.cpp
diff options
context:
space:
mode:
authorWilliam A. Kennington III <wak@google.com>2018-07-22 23:47:13 -0700
committerWilliam A. Kennington III <wak@google.com>2018-07-23 09:47:01 -0700
commiteaf815f7cf7d3f22028e55227d2147a722fde590 (patch)
tree7202d459b6b7fa8c4d1bd038ea66fb8aa1c8cefb /test/source/io.cpp
parent571fdf9e9c35001d6aca73052020143833e1794b (diff)
downloadsdeventplus-eaf815f7cf7d3f22028e55227d2147a722fde590.tar.gz
sdeventplus-eaf815f7cf7d3f22028e55227d2147a722fde590.zip
source/io: Temporarily remove {get,set}_fd_own
These functions were implemented only in newer systemd 237+. We often deal with older verisons so lets add them back after some time passes. We could also make them an optional autodetected feature to work around the issue.
Diffstat (limited to 'test/source/io.cpp')
-rw-r--r--test/source/io.cpp31
1 files changed, 0 insertions, 31 deletions
diff --git a/test/source/io.cpp b/test/source/io.cpp
index e3b5921..b680be7 100644
--- a/test/source/io.cpp
+++ b/test/source/io.cpp
@@ -172,37 +172,6 @@ TEST_F(IOMethodTest, SetFdError)
EXPECT_THROW(io->set_fd(fd), SdEventError);
}
-TEST_F(IOMethodTest, GetFdOwnSuccess)
-{
- EXPECT_CALL(mock, sd_event_source_get_io_fd_own(expected_source))
- .WillOnce(Return(3));
- EXPECT_TRUE(io->get_fd_own());
- EXPECT_CALL(mock, sd_event_source_get_io_fd_own(expected_source))
- .WillOnce(Return(0));
- EXPECT_FALSE(io->get_fd_own());
-}
-
-TEST_F(IOMethodTest, GetFdOwnError)
-{
- EXPECT_CALL(mock, sd_event_source_get_io_fd_own(expected_source))
- .WillOnce(Return(-EINVAL));
- EXPECT_THROW(io->get_fd_own(), SdEventError);
-}
-
-TEST_F(IOMethodTest, SetFdOwnSuccess)
-{
- EXPECT_CALL(mock, sd_event_source_set_io_fd_own(expected_source, true))
- .WillOnce(Return(0));
- io->set_fd_own(true);
-}
-
-TEST_F(IOMethodTest, SetFdOwnError)
-{
- EXPECT_CALL(mock, sd_event_source_set_io_fd_own(expected_source, false))
- .WillOnce(Return(-EINVAL));
- EXPECT_THROW(io->set_fd_own(false), SdEventError);
-}
-
TEST_F(IOMethodTest, GetEventsSuccess)
{
const uint32_t events = EPOLLIN | EPOLLOUT;
OpenPOWER on IntegriCloud