6#include "../../../tests/testXWC.hpp"
8#include "../logFileRaw.cpp"
42SCENARIO(
"Creating a log file with error from fileTimeRelPath",
"[libMagAOX::logger::logFileRaw]" )
44 GIVEN(
"A valid timestamp" )
51 std::cerr <<
"\nTESTING-ERROR: testPath is just /tmp, so logName is null. Can't go on\n";
52 std::cerr << __FILE__ <<
' ' << __LINE__ <<
"\n\n";
58 std::filesystem::remove_all( lfr.
testPath );
64 REQUIRE( rv != mx::error_t::noerror );
A class to manage raw binary log files.
std::string m_logName
The base name for the log files.
std::string m_logPath
The base path for the log files.
mx::error_t createFile(flatlogs::timespecX &ts)
Create a new file.
logFileRawTest(const std::string &lp)
mx::error_t test_createFile(flatlogs::timespecX &ts)
MagAOX::logger::logFileRaw< XWC_DEFAULT_VERBOSITY > logFileRawT
SCENARIO("Creating a log file with error from fileTimeRelPath", "[libMagAOX::logger::logFileRaw]")
A fixed-width timespec structure.