diff options
-rw-r--r-- | netfs/unittests/testCore.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/netfs/unittests/testCore.cpp b/netfs/unittests/testCore.cpp index 2e82b32..5473d0f 100644 --- a/netfs/unittests/testCore.cpp +++ b/netfs/unittests/testCore.cpp @@ -339,15 +339,20 @@ BOOST_AUTO_TEST_CASE( utimens ) struct stat st; memset(&st, 0, sizeof(st)); BOOST_REQUIRE_EQUAL(fuse->getattr("/file", &st), 0); + BOOST_REQUIRE_EQUAL(st.st_atime, 1); BOOST_REQUIRE_EQUAL(st.st_atim.tv_sec, 1); + BOOST_REQUIRE_EQUAL(st.st_mtime, 2); BOOST_REQUIRE_EQUAL(st.st_mtim.tv_sec, 2); // Protocol discards nsec BOOST_REQUIRE_EQUAL(st.st_atim.tv_nsec, 0); BOOST_REQUIRE_EQUAL(st.st_mtim.tv_nsec, 0); + BOOST_REQUIRE_EQUAL(st.st_ctim.tv_nsec, 0); // Real file doesn't BOOST_REQUIRE_EQUAL(lstat((binDir / testExport / "file").c_str(), &st), 0); BOOST_REQUIRE_EQUAL(st.st_atim.tv_sec, 1); + BOOST_REQUIRE_EQUAL(st.st_atime, 1); BOOST_REQUIRE_EQUAL(st.st_mtim.tv_sec, 2); + BOOST_REQUIRE_EQUAL(st.st_mtime, 2); BOOST_REQUIRE_EQUAL(st.st_atim.tv_nsec, 100); BOOST_REQUIRE_EQUAL(st.st_mtim.tv_nsec, 200); } |