Skip to content
Snippets Groups Projects
Commit 369e7fd1 authored by Damien George's avatar Damien George
Browse files

tests/unix/extra_coverage: Add test for mp_vprintf with bad fmt spec.

parent adf22c19
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,7 @@ false true
2147483648
80000000
80000000
abc
# vstr
tests
sts
......
......@@ -154,6 +154,7 @@ STATIC mp_obj_t extra_coverage(void) {
mp_printf(&mp_plat_print, "%u\n", 0x80000000); // should print unsigned
mp_printf(&mp_plat_print, "%x\n", 0x80000000); // should print unsigned
mp_printf(&mp_plat_print, "%X\n", 0x80000000); // should print unsigned
mp_printf(&mp_plat_print, "abc\n%"); // string ends in middle of format specifier
}
// vstr
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment