From d98211f33957993bf70c4cd9d34d0287d33e36fa Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Thu, 2 Jun 2022 14:44:47 +0200 Subject: [PATCH] tests/fmt_printf: spice up test Also include interaction with stdio, as corrupting output on mixing stdio and fmt is too much of a footgun. --- tests/fmt_print/main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/fmt_print/main.c b/tests/fmt_print/main.c index 15159293a5..7dd405bef5 100644 --- a/tests/fmt_print/main.c +++ b/tests/fmt_print/main.c @@ -20,6 +20,8 @@ * @} */ +#include + #include "fmt.h" int main(void) @@ -43,7 +45,9 @@ int main(void) print_str("\n"); print_float(1.2345, 5); print_str("\n"); - print_str("Test successful.\n"); + printf("%s", "Test "); + print_str("successful."); + puts(""); return 0; }