some tweaks to the moved tests to make them more suitable for automatic testing

This commit is contained in:
mrdudz
2020-07-13 21:26:07 +02:00
parent 882194c221
commit 5ad365c5df
7 changed files with 108 additions and 64 deletions

View File

@@ -1,13 +1,13 @@
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#if defined(__CC65__)
#if defined(__CC65__) && !defined(__SIM6502__) && !defined(__SIM65C02__)
#include <conio.h>
#endif
/* Flag to #ifdef the tests out that crash the old implementation */
/*#define NOCRASH 1 */
#define NOCRASH 1
@@ -532,9 +532,9 @@ int main (void)
/* Alternative form with zero value */
#ifndef NOCRASH
OneTest (__LINE__, "0", 1, "%#o", 0U);
#endif
OneTest (__LINE__, "0", 1, "%#x", 0U);
OneTest (__LINE__, "0", 1, "%#X", 0U);
#endif
/* Alternative form with zero value and precision 1 */
OneTest (__LINE__, "0", 1, "%#.1o", 0U);
@@ -570,8 +570,8 @@ int main (void)
}
/* Wait for a key so we can read the result */
#if defined(__CC65__)
#if defined(__CC65__) && !defined(__SIM6502__) && !defined(__SIM65C02__)
cgetc ();
#endif
return 0;
return Failures;
}