diff options
Diffstat (limited to 'unittests/core.cpp')
-rw-r--r-- | unittests/core.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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()); |