X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fmware%2Fsprintf_test.c;h=caf952a65729859dae40dfe9c6c1809d01e3d84f;hb=97e93eec653e38a04e94e5191bdbf5ea48edde96;hp=6aaeef91c34c0225e0ae95832127a0454f15729b;hpb=2796b45ae17067be57fa4e81ab2b75c5884d6ea4;p=bertos.git diff --git a/bertos/mware/sprintf_test.c b/bertos/mware/sprintf_test.c index 6aaeef91..caf952a6 100644 --- a/bertos/mware/sprintf_test.c +++ b/bertos/mware/sprintf_test.c @@ -30,9 +30,10 @@ * * --> * + * notest: avr + * notest: arm * \brief sprintf() implementation based on _formatted_write() * - * \version $Id$ * \author Bernie Innocenti */ @@ -64,7 +65,7 @@ int sprintf_testRun(void) if (strcmp(buf, test_string) != 0) return 1; - snprintf(buf, sizeof buf, "%S", (wchar_t *)test_string_pgm); + snprintf(buf, sizeof buf, "%S", (const wchar_t *)test_string_pgm); if (strcmp(buf, test_string_pgm) != 0) return 2; @@ -110,7 +111,4 @@ int sprintf_testTearDown(void) return 0; } -#if UNIT_TEST - TEST_MAIN(sprintf); -#endif /* UNIT_TEST */ - +TEST_MAIN(sprintf);