From 8f809c1ce61a844c92b620d1c39edbb3fd6c6e6d Mon Sep 17 00:00:00 2001 From: Dilshod Mukhtarov Date: Thu, 1 Oct 2020 15:18:07 +0400 Subject: [PATCH] Added example comment in test --- tests/test_file_logging.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test_file_logging.cpp b/tests/test_file_logging.cpp index 4a39a40e..79ffcfeb 100644 --- a/tests/test_file_logging.cpp +++ b/tests/test_file_logging.cpp @@ -107,7 +107,10 @@ TEST_CASE("rotating_file_logger_compress_callback", "[rotating_logger]]") std::string compress_ext = ".gz"; auto callback = [=](spdlog::filename_t filename){ - // Here could be gzip filename which will rename it to filename.gz + // Example usage on *nix OS: + // std::system(std::string("gzip " + filename).c_str()); + + // for testing we use rename(), simulating gzipping rename(filename.c_str(), std::string(filename + compress_ext).c_str()); };