Init logger
This commit is contained in:
@@ -106,6 +106,7 @@ TEST_CASE("GetDirSize", "[FsUtils]")
|
|||||||
|
|
||||||
TEST_CASE("ToValidFileName", "[FsUtils]")
|
TEST_CASE("ToValidFileName", "[FsUtils]")
|
||||||
{
|
{
|
||||||
|
Logger::SetupLogger("", "tests.log");
|
||||||
REQUIRE(FsUtils::ToValidFileName("file<name>") == "file<name>");
|
REQUIRE(FsUtils::ToValidFileName("file<name>") == "file<name>");
|
||||||
REQUIRE(FsUtils::ToValidFileName("file:name") == "file꞉name");
|
REQUIRE(FsUtils::ToValidFileName("file:name") == "file꞉name");
|
||||||
REQUIRE(FsUtils::ToValidFileName("file\"name\"") == "file"name"");
|
REQUIRE(FsUtils::ToValidFileName("file\"name\"") == "file"name"");
|
||||||
@@ -147,6 +148,7 @@ TEST_CASE("ToValidFileName", "[FsUtils]")
|
|||||||
|
|
||||||
TEST_CASE("DeleteEmptyFilesAndDirs", "[FsUtils]")
|
TEST_CASE("DeleteEmptyFilesAndDirs", "[FsUtils]")
|
||||||
{
|
{
|
||||||
|
Logger::SetupLogger("", "tests.log");
|
||||||
const auto testDir = AppFolders::GetAppTempDir() / "testDirectory";
|
const auto testDir = AppFolders::GetAppTempDir() / "testDirectory";
|
||||||
|
|
||||||
{
|
{
|
||||||
@@ -232,6 +234,7 @@ TEST_CASE("DeleteEmptyFilesAndDirs", "[FsUtils]")
|
|||||||
|
|
||||||
TEST_CASE("GetDirFileAndDirCount", "[FsUtils]")
|
TEST_CASE("GetDirFileAndDirCount", "[FsUtils]")
|
||||||
{
|
{
|
||||||
|
Logger::SetupLogger("", "tests.log");
|
||||||
const auto testDir = AppFolders::GetAppTempDir() / "count_test_directory";
|
const auto testDir = AppFolders::GetAppTempDir() / "count_test_directory";
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user