chore: LogTests, Fix codeQL issue with args in the printTestWithArgs test

This commit is contained in:
sithlord48 2025-08-29 07:50:07 -04:00 committed by Nick Bolton
parent 490dac5048
commit d1897efa8b

View file

@ -59,12 +59,12 @@ void LogTests::printTestWithArgs()
std::stringstream buffer;
std::streambuf *old = std::cout.rdbuf(buffer.rdbuf());
m_log.print(nullptr, 0, LEVEL_INFO "test %d %.2f %s", 1, 1.234, "test arg");
m_log.print(nullptr, 0, LEVEL_INFO "test %s", "IamARG");
auto string = sanitizeBuffer(buffer);
std::cout.rdbuf(old);
QCOMPARE(string, "INFO: test 1 1.23 test arg");
QCOMPARE(string, "INFO: test IamARG");
}
void LogTests::printTestLogString()