This commit is contained in:
1 file changed
+8
-3
@@ -180,9 +180,14 @@ class RotatingFileLoggerTests : public Void::Testing::Fixture
|
||||
|
||||
Void::Testing::Test open_factory_rejects_bad_path()
|
||||
{
|
||||
auto r =
|
||||
RotatingFileLogger::open("/this/path/does/not/exist/app.log");
|
||||
Void::Testing::expect(!r.has_value());
|
||||
const auto blocking_parent = dir / "not-a-directory";
|
||||
{
|
||||
std::ofstream blocker{blocking_parent};
|
||||
blocker << "file blocks directory creation";
|
||||
}
|
||||
const auto result =
|
||||
RotatingFileLogger::open(blocking_parent / "app.log");
|
||||
Void::Testing::expect(!result.has_value());
|
||||
}
|
||||
|
||||
Void::Testing::Test async_rotation_under_load()
|
||||
|
||||
Reference in new issue
Block a user