From d7b0b54c9cd43f616c916be576c18b0a86523394 Mon Sep 17 00:00:00 2001 From: gabime Date: Fri, 15 May 2015 21:56:06 +0300 Subject: [PATCH] fixed tests --- tests/file_log.cpp | 4 ++-- tests/logs/.gitignore | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 tests/logs/.gitignore 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 @@ +