Fix garbled test output (#18822)

* Fix garbled test output

* Correct SRC listing
This commit is contained in:
Joel Challis 2022-10-23 04:30:17 +01:00 committed by GitHub
parent 1a1a3651d3
commit 64ca14feea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -71,7 +71,7 @@ include $(BUILDDEFS_PATH)/build_full_test.mk
endif endif
$(TEST)_SRC += \ $(TEST)_SRC += \
tests/test_common/main.c \ tests/test_common/main.cpp \
$(QUANTUM_PATH)/logging/print.c $(QUANTUM_PATH)/logging/print.c
$(TEST_OBJ)/$(TEST)_SRC := $($(TEST)_SRC) $(TEST_OBJ)/$(TEST)_SRC := $($(TEST)_SRC)

View file

@ -5,7 +5,7 @@ extern "C" {
#include "debug.h" #include "debug.h"
int8_t sendchar(uint8_t c) { int8_t sendchar(uint8_t c) {
fprintf(stderr, "%c", c); fprintf(stdout, "%c", c);
return 0; return 0;
} }