mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
Turn on logging in unit tests.
This commit is contained in:
@@ -7,8 +7,17 @@
|
||||
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
#include "Log.h"
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
nt::Logger::GetInstance().SetLogger(
|
||||
[](unsigned int level, const char* file, unsigned int line,
|
||||
const char* msg) {
|
||||
std::fputs(msg, stderr);
|
||||
std::fputc('\n', stderr);
|
||||
});
|
||||
nt::Logger::GetInstance().set_min_level(0);
|
||||
::testing::InitGoogleTest(&argc, argv);
|
||||
int ret = RUN_ALL_TESTS();
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user