Test of CPC Formats

This commit is contained in:
Thomas Bernard
2019-11-21 23:20:40 +01:00
parent e2321c2abe
commit 64b2761f14
2 changed files with 50 additions and 4 deletions

View File

@@ -78,8 +78,12 @@ static const struct {
{ NULL, NULL}
};
/**
* Initializations for test program
*/
void init(void)
{
srandom(time(NULL));
#ifdef ENABLE_FILENAMES_ICONV
// iconv is used to convert filenames
cd = iconv_open(TOCODE, FROMCODE); // From UTF8 to ANSI
@@ -102,8 +106,8 @@ int main(int argc, char * * argv)
int i, r;
int fail = 0;
srandom(time(NULL));
GFX2_verbosity_level = GFX2_DEBUG;
init();
for (i = 0; tests[i].test_func != 0; i++)
{