*
* -->
*
+ * notest: avr
+ * notest: arm
* \brief sprintf() implementation based on _formatted_write()
*
- * \version $Id$
* \author Bernie Innocenti <bernie@codewiz.org>
*/
if (strcmp(buf, test_string) != 0)
return 1;
- snprintf(buf, sizeof buf, "%S", test_string_pgm);
+ snprintf(buf, sizeof buf, "%S", (const wchar_t *)test_string_pgm);
if (strcmp(buf, test_string_pgm) != 0)
return 2;
/*
* Stress tests.
*/
- snprintf(buf, sizeof buf, "%s", NULL);
+ snprintf(buf, sizeof buf, "%s", (char *)(NULL));
if (strcmp(buf, "<NULL>") != 0)
return 3;
snprintf(buf, sizeof buf, "%k");
return 0;
}
-#if UNIT_TEST
- #include <drv/kdebug.c>
- #include "sprintf.c"
- #include "formatwr.c"
- #include "hex.c"
- TEST_MAIN(sprintf);
-#endif /* UNIT_TEST */
-
+TEST_MAIN(sprintf);