Fix nightly test warnings; exposed bugs are on the bug tracker.
[bertos.git] / bertos / mware / sprintf_test.c
index 6aaeef91c34c0225e0ae95832127a0454f15729b..56c2af7db2c660479e4108a5d6b379df9540e9b2 100644 (file)
@@ -64,7 +64,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 +110,4 @@ int sprintf_testTearDown(void)
        return 0;
 }
 
-#if UNIT_TEST
-       TEST_MAIN(sprintf);
-#endif /* UNIT_TEST */
-
+TEST_MAIN(sprintf);