summaryrefslogtreecommitdiff
path: root/netfs/daemon
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2016-02-14 20:17:37 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2016-02-14 20:17:37 +0000
commitaefcd5dcdcbc9a265b54a331b212f269769c61cd (patch)
tree1c46969d86b18ffdb1fc915774141b32417ee594 /netfs/daemon
parentSingle instance of testExport path (diff)
downloadnetfs-aefcd5dcdcbc9a265b54a331b212f269769c61cd.tar.bz2
netfs-aefcd5dcdcbc9a265b54a331b212f269769c61cd.tar.xz
netfs-aefcd5dcdcbc9a265b54a331b212f269769c61cd.zip
Almost complete coverage of basic directory operations
Diffstat (limited to 'netfs/daemon')
-rw-r--r--netfs/daemon/daemonDirectory.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/netfs/daemon/daemonDirectory.cpp b/netfs/daemon/daemonDirectory.cpp
index 86b595f..8c6c344 100644
--- a/netfs/daemon/daemonDirectory.cpp
+++ b/netfs/daemon/daemonDirectory.cpp
@@ -20,7 +20,9 @@ DirectoryServer::close(const Ice::Current & ice)
{
errno = 0;
if (::closedir(od) != 0) {
+ // LCOV_EXCL_START
throw NetFS::SystemError(errno);
+ // LCOV_EXCL_STOP
}
ice.adapter->remove(ice.id);
}
@@ -32,7 +34,9 @@ DirectoryServer::readdir(const Ice::Current&)
NetFS::NameList list;
while (dirent * d = ::readdir(od)) {
if (errno) {
+ // LCOV_EXCL_START
throw NetFS::SystemError(errno);
+ // LCOV_EXCL_STOP
}
list.push_back(d->d_name);
}