mirror of
https://git.mirrors.martin98.com/https://github.com/gulrak/filesystem
synced 2025-07-24 08:14:25 +08:00
Work on CI integration.
This commit is contained in:
parent
8b222fc06f
commit
9085725056
@ -1246,7 +1246,7 @@ TEST_CASE("30.10.15.3 copy", "[filesystem][operations][fs.op.copy]")
|
||||
CHECK(fs::exists("dir4/file2"));
|
||||
CHECK(fs::exists("dir4/dir2/file3"));
|
||||
}
|
||||
{
|
||||
if(is_symlink_creation_supported()) {
|
||||
TemporaryDirectory t(TempOpt::change_path);
|
||||
std::error_code ec;
|
||||
fs::create_directory("dir1");
|
||||
@ -1427,7 +1427,7 @@ TEST_CASE("30.10.15.7 create_directory", "[filesystem][operations][fs.op.create_
|
||||
|
||||
TEST_CASE("30.10.15.8 create_directory_symlink", "[filesystem][operations][fs.op.create_directory_symlink]")
|
||||
{
|
||||
REQUIRE(is_symlink_creation_supported());
|
||||
if(is_symlink_creation_supported()) {
|
||||
TemporaryDirectory t;
|
||||
fs::create_directory(t.path() / "dir1");
|
||||
generateFile(t.path() / "dir1/test1");
|
||||
@ -1441,6 +1441,7 @@ TEST_CASE("30.10.15.8 create_directory_symlink", "[filesystem][operations][fs.op
|
||||
std::error_code ec;
|
||||
CHECK_NOTHROW(fs::create_directory_symlink(t.path() / "dir1", t.path() / "dir2/dirSym", ec));
|
||||
CHECK(ec);
|
||||
}
|
||||
}
|
||||
|
||||
TEST_CASE("30.10.15.9 create_hard_link", "[filesystem][operations][fs.op.create_hard_link]")
|
||||
@ -1462,7 +1463,7 @@ TEST_CASE("30.10.15.9 create_hard_link", "[filesystem][operations][fs.op.create_
|
||||
|
||||
TEST_CASE("30.10.15.10 create_symlink", "[filesystem][operations][fs.op.create_symlink]")
|
||||
{
|
||||
REQUIRE(is_symlink_creation_supported());
|
||||
if(is_symlink_creation_supported()) {
|
||||
TemporaryDirectory t;
|
||||
fs::create_directory(t.path() / "dir1");
|
||||
generateFile(t.path() / "dir1/test1");
|
||||
@ -1476,6 +1477,7 @@ TEST_CASE("30.10.15.10 create_symlink", "[filesystem][operations][fs.op.create_s
|
||||
std::error_code ec;
|
||||
CHECK_NOTHROW(fs::create_symlink(t.path() / "dir1", t.path() / "dir2/fileSym", ec));
|
||||
CHECK(ec);
|
||||
}
|
||||
}
|
||||
|
||||
TEST_CASE("30.10.15.11 current_path", "[filesystem][operations][fs.op.current_path]")
|
||||
|
Loading…
x
Reference in New Issue
Block a user