We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ca1f59 commit 2ef3a36Copy full SHA for 2ef3a36
src/lib/support/BUILD.gn
@@ -350,6 +350,7 @@ pw_static_library("pw_tests_wrapper") {
350
public_deps = [
351
"$dir_pw_log:impl",
352
"$dir_pw_unit_test",
353
+ "$dir_pw_unit_test:logging",
354
]
355
sources = [
356
"UnitTest.cpp",
src/lib/support/UnitTest.cpp
@@ -1,12 +1,16 @@
1
#include "UnitTest.h"
2
3
#include "pw_unit_test/framework.h"
4
+#include "pw_unit_test/logging_event_handler.h"
5
6
namespace chip {
7
namespace test {
8
9
int RunAllTests()
10
{
11
+ testing::InitGoogleTest(nullptr, static_cast<char **>(nullptr));
12
+ pw::unit_test::LoggingEventHandler handler;
13
+ pw::unit_test::RegisterEventHandler(&handler);
14
return RUN_ALL_TESTS();
15
}
16
0 commit comments