Added symlink_status test for a system directory.
This commit is contained in:
parent
4bdac43bd9
commit
a187a9f10f
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user