Lines Matching refs:mount_point
276 cleanup_mount_point(const fs::path& cookie, const fs::path& mount_point) in cleanup_mount_point() argument
280 fs::unmount(mount_point); in cleanup_mount_point()
283 std::cerr << "Failed trying to unmount " + mount_point.str() + in cleanup_mount_point()
297 const fs::path mount_point("mount_point"); in ATF_TEST_CASE_BODY() local
298 fs::mkdir(mount_point, 0755); in ATF_TEST_CASE_BODY()
299 fs::mount_tmpfs(mount_point, units::bytes(32 * units::MB)); in ATF_TEST_CASE_BODY()
301 const units::bytes space = fs::free_disk_space(fs::path(mount_point)); in ATF_TEST_CASE_BODY()
302 fs::unmount(mount_point); in ATF_TEST_CASE_BODY()
571 const fs::path mount_point("mount_point"); in test_mount_tmpfs_ok() local
572 fs::mkdir(mount_point, 0755); in test_mount_tmpfs_ok()
576 fs::mount_tmpfs(mount_point, size); in test_mount_tmpfs_ok()
578 atf::utils::create_file((mount_point / "inside").str(), ""); in test_mount_tmpfs_ok()
582 ATF_REQUIRE(::stat((mount_point / "inside").c_str(), &inside) != -1); in test_mount_tmpfs_ok()
584 fs::unmount(mount_point); in test_mount_tmpfs_ok()
751 const fs::path mount_point("mount_point"); in ATF_TEST_CASE_BODY() local
752 fs::mkdir(mount_point, 0755); in ATF_TEST_CASE_BODY()
754 atf::utils::create_file((mount_point / "test1").str(), ""); in ATF_TEST_CASE_BODY()
756 fs::mount_tmpfs(mount_point); in ATF_TEST_CASE_BODY()
761 atf::utils::create_file((mount_point / "test2").str(), ""); in ATF_TEST_CASE_BODY()
763 ATF_REQUIRE(!fs::exists(mount_point / "test1")); in ATF_TEST_CASE_BODY()
764 ATF_REQUIRE( fs::exists(mount_point / "test2")); in ATF_TEST_CASE_BODY()
765 fs::unmount(mount_point); in ATF_TEST_CASE_BODY()
766 ATF_REQUIRE( fs::exists(mount_point / "test1")); in ATF_TEST_CASE_BODY()
767 ATF_REQUIRE(!fs::exists(mount_point / "test2")); in ATF_TEST_CASE_BODY()