diff --git a/builddefs/build_test.mk b/builddefs/build_test.mk index 64db99fed91..7c8fdd20e5a 100644 --- a/builddefs/build_test.mk +++ b/builddefs/build_test.mk @@ -71,7 +71,7 @@ include $(BUILDDEFS_PATH)/build_full_test.mk endif $(TEST)_SRC += \ - tests/test_common/main.c \ + tests/test_common/main.cpp \ $(QUANTUM_PATH)/logging/print.c $(TEST_OBJ)/$(TEST)_SRC := $($(TEST)_SRC) diff --git a/tests/test_common/main.cpp b/tests/test_common/main.cpp index 3e4b4c0f954..0f4e320b07e 100644 --- a/tests/test_common/main.cpp +++ b/tests/test_common/main.cpp @@ -5,7 +5,7 @@ extern "C" { #include "debug.h" int8_t sendchar(uint8_t c) { - fprintf(stderr, "%c", c); + fprintf(stdout, "%c", c); return 0; }