predixy/test/logunit_vsnprintf.cpp
2026-01-15 12:59:03 +01:00

15 lines
260 B
C++

/*
* Minimal test for LogUnit::vformat negative vsnprintf handling.
*/
#include "../src/Logger.h"
int main() {
LogUnit unit;
unit.format(LogLevel::Info, __FILE__, __LINE__, "%");
if (unit.length() < 0) {
return 1;
}
return 0;
}