Ported rwops test suite.

This commit is contained in:
Markus Kauppila 2011-08-10 16:55:30 +03:00
parent 9c7ff0059f
commit b96fa6da9a
7 changed files with 222 additions and 14 deletions

View file

@ -761,6 +761,11 @@ CheckTestRequirements(TestCase *testCase)
retVal = PlatformSupportsAudio();
}
if(testCase->requirements & TEST_REQUIRES_STDIO) {
retVal = PlatformSupportsStdio();
}
return retVal;
}

View file

@ -37,6 +37,18 @@ PlatformSupportsAudio()
return retValue;
}
int
PlatformSupportsStdio()
{
int retValue = 0;
#ifdef HAVE_STDIO_H
retValue = 1;
#endif
return retValue;
}
/*

View file

@ -28,4 +28,12 @@
*/
int PlatformSupportsAudio();
/*!
* Checks if platform supports stdio.
*
* \return 1 if audio is supported, otherwise 0
*/
int PlatformSupportsStdio();
#endif