summaryrefslogtreecommitdiff
path: root/unittests
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-05-29 11:31:51 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2022-05-29 11:31:51 +0100
commitd1dd13984271090307a91e730a5196503d32d95e (patch)
tree4bcdb14aff04150899ec4b334901b4da312a7348 /unittests
parentFix up all warnings from all the tools (diff)
downloadnetfs-gitfs-main.tar.bz2
netfs-gitfs-main.tar.xz
netfs-gitfs-main.zip
Update to NetFS 1.5 interfaceHEADnetfs-gitfs-0.2.3main
Diffstat (limited to 'unittests')
-rw-r--r--unittests/config.cpp2
-rw-r--r--unittests/core.cpp6
2 files changed, 4 insertions, 4 deletions
diff --git a/unittests/config.cpp b/unittests/config.cpp
index 6e3f92c..f6a914e 100644
--- a/unittests/config.cpp
+++ b/unittests/config.cpp
@@ -62,7 +62,7 @@ BOOST_DATA_TEST_CASE(uid_gid_override_fgetattr, USERS * GROUPS * FILES, uid, gid
BOOST_CHECK_NO_THROW(c.s->ice_ping());
auto file = c.v->open(c.env, path, {});
- auto attr = file->fgetattr(c.env);
+ auto attr = file->fgetattr();
BOOST_CHECK_EQUAL(attr.uid, uid);
BOOST_CHECK_EQUAL(attr.gid, gid);
file->close();
diff --git a/unittests/core.cpp b/unittests/core.cpp
index e64ae80..fb2f477 100644
--- a/unittests/core.cpp
+++ b/unittests/core.cpp
@@ -307,7 +307,7 @@ BOOST_DATA_TEST_CASE(openFileROFSOps, REGPATHS + EXECPATHS, path)
{
auto f = v->open(env, path, O_RDONLY);
BOOST_REQUIRE(f);
- BOOST_CHECK_THROW_SYSTEMERROR(f->ftruncate(env, {}), EROFS);
+ BOOST_CHECK_THROW_SYSTEMERROR(f->ftruncate({}), EROFS);
BOOST_CHECK_THROW_SYSTEMERROR(f->write({}, {}, {}), EROFS);
f->close();
}
@@ -316,7 +316,7 @@ BOOST_DATA_TEST_CASE(openFileGetAttr, REGPATHS + EXECPATHS, path)
{
auto f = v->open(env, path, O_RDONLY);
BOOST_REQUIRE(f);
- const auto attr = f->fgetattr(env);
+ const auto attr = f->fgetattr();
BOOST_CHECK(S_ISREG(attr.mode));
BOOST_CHECK_EQUAL(attr.size, attr.blocks);
BOOST_CHECK_EQUAL(1, attr.blockSize);
@@ -331,7 +331,7 @@ BOOST_DATA_TEST_CASE(openFileRead, REGPATHS + EXECPATHS, path)
auto f = v->open(env, path, O_RDONLY);
BOOST_REQUIRE(f);
- const auto attr = f->fgetattr(env);
+ const auto attr = f->fgetattr();
const auto readAll = f->read(0, attr.size);
BOOST_CHECK_EQUAL(attr.size, readAll.size());