Added symlink_status test for a system directory.

This commit is contained in:
Andrey Semashev 2022-05-09 20:04:23 +03:00
parent 4bdac43bd9
commit a187a9f10f

View File

@ -2091,6 +2091,16 @@ void symlink_status_tests()
BOOST_TEST(fs::is_symlink(users / "All Users")); // dir /A reports <SYMLINKD>
BOOST_TEST(fs::is_symlink(users / "Default User")); // dir /A reports <JUNCTION>
fs::file_status stat(fs::symlink_status(L"\\System Volume Information"));
BOOST_TEST(fs::type_present(stat));
BOOST_TEST(fs::permissions_present(stat));
BOOST_TEST(fs::status_known(stat));
BOOST_TEST(fs::exists(stat));
BOOST_TEST(fs::is_directory(stat));
BOOST_TEST(!fs::is_regular_file(stat));
BOOST_TEST(!fs::is_other(stat));
BOOST_TEST(!fs::is_symlink(stat));
#endif
}