From 64ca14feea586442516a2ec50d7335445f5f08f6 Mon Sep 17 00:00:00 2001 From: Joel Challis Date: Sun, 23 Oct 2022 04:30:17 +0100 Subject: [PATCH] Fix garbled test output (#18822) * Fix garbled test output * Correct SRC listing --- builddefs/build_test.mk | 2 +- tests/test_common/main.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; }