summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2022-10-23 04:30:17 +0100
committerGitHub <noreply@github.com>2022-10-23 04:30:17 +0100
commit64ca14feea586442516a2ec50d7335445f5f08f6 (patch)
tree8c43cf58ab30252e95a10e71fe7459e2c6c0592b
parent1a1a3651d3ca6dfd8a09dd3e79498afbd54fa350 (diff)
Fix garbled test output (#18822)
* Fix garbled test output * Correct SRC listing
-rw-r--r--builddefs/build_test.mk2
-rw-r--r--tests/test_common/main.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/builddefs/build_test.mk b/builddefs/build_test.mk
index 64db99fed9..7c8fdd20e5 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 3e4b4c0f95..0f4e320b07 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;
}