Nonessential code formatting cleanup.

This commit is contained in:
Andrey Semashev 2020-05-01 17:22:31 +03:00
parent 1dc3225920
commit 4642ac8e03

View File

@ -1806,13 +1806,14 @@ namespace
// Directory junctions are very similar to symlinks, but have some performance
// and other advantages over symlinks. They can be created from the command line
// with "mklink /j junction-name target-path".
// Make sure that mklink does exist, it doesn't for e.g. cygwin
if(std::system("mklink /?") != 0)
{
cout << " junction point could not be created." << endl;
cout << " Skipping junction tests." << endl;
} else
}
else
{
cout << " directory junction tests..." << endl;
BOOST_TEST(fs::exists(dir));
@ -1836,14 +1837,14 @@ namespace
//std::system("dir");
fs::current_path(cur_path);
//cout << " current_path() is " << fs::current_path() << endl;
BOOST_TEST(fs::exists(junc));
BOOST_TEST(fs::is_symlink(junc));
BOOST_TEST(fs::is_directory(junc));
BOOST_TEST(!fs::is_regular_file(junc));
BOOST_TEST(fs::exists(junc / "d1f1"));
BOOST_TEST(fs::is_regular_file(junc / "d1f1"));
int count = 0;
for (fs::directory_iterator itr(junc); itr != fs::directory_iterator(); ++itr)
{
@ -1852,7 +1853,7 @@ namespace
}
cout << " iteration count is " << count << endl;
BOOST_TEST(count > 0);
fs::rename(junc, new_junc);
BOOST_TEST(!fs::exists(junc));
BOOST_TEST(fs::exists(new_junc));
@ -1861,7 +1862,7 @@ namespace
BOOST_TEST(!fs::is_regular_file(new_junc));
BOOST_TEST(fs::exists(new_junc / "d1f1"));
BOOST_TEST(fs::is_regular_file(new_junc / "d1f1"));
fs::remove(new_junc);
BOOST_TEST(!fs::exists(new_junc / "d1f1"));
BOOST_TEST(!fs::exists(new_junc));