diff --git a/tests/file_log.cpp b/tests/file_log.cpp index 0c2d21d9..d8e5aa19 100644 --- a/tests/file_log.cpp +++ b/tests/file_log.cpp @@ -36,9 +36,9 @@ static void prepare_logdir() { spdlog::drop_all(); #ifdef _WIN32 - auto rv = system("mkdir logs;del /F /Q logs\\*"); + auto rv = system("del /F /Q logs\\*"); #else - auto rv = system("mkdir logs;rm -f logs/*"); + auto rv = system("rm -f logs/*"); #endif } diff --git a/tests/logs/.gitignore b/tests/logs/.gitignore new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/tests/logs/.gitignore @@ -0,0 +1 @@ +