1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-24 22:13:52 +01:00

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.
This commit is contained in:
Marian Buschsieweke 2022-06-02 14:44:47 +02:00
parent 6cca6234b0
commit d98211f339
No known key found for this signature in database
GPG Key ID: CB8E3238CE715A94

View File

@ -20,6 +20,8 @@
* @}
*/
#include <stdio.h>
#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;
}