SDL
2.0
|
Go to the source code of this file.
Functions | |
static int | _compareSizeOfType (size_t sizeoftype, size_t hardcodetype) |
Compare sizes of types. More... | |
int | platform_testTypes (void *arg) |
Tests type sizes. More... | |
int | platform_testEndianessAndSwap (void *arg) |
Tests platform endianness and SDL_SwapXY functions. More... | |
int | platform_testGetFunctions (void *arg) |
int | platform_testHasFunctions (void *arg) |
int | platform_testGetVersion (void *arg) |
int | platform_testSDLVersion (void *arg) |
int | platform_testDefaultInit (void *arg) |
int | platform_testGetSetClearError (void *arg) |
int | platform_testSetErrorEmptyInput (void *arg) |
int | platform_testSetErrorInvalidInput (void *arg) |
int | platform_testGetPowerInfo (void *arg) |
Variables | |
static const SDLTest_TestCaseReference | platformTest1 |
static const SDLTest_TestCaseReference | platformTest2 |
static const SDLTest_TestCaseReference | platformTest3 |
static const SDLTest_TestCaseReference | platformTest4 |
static const SDLTest_TestCaseReference | platformTest5 |
static const SDLTest_TestCaseReference | platformTest6 |
static const SDLTest_TestCaseReference | platformTest7 |
static const SDLTest_TestCaseReference | platformTest8 |
static const SDLTest_TestCaseReference | platformTest9 |
static const SDLTest_TestCaseReference | platformTest10 |
static const SDLTest_TestCaseReference | platformTest11 |
static const SDLTest_TestCaseReference * | platformTests [] |
SDLTest_TestSuiteReference | platformTestSuite |
Compare sizes of types.
Original code: automated SDL platform test written by Edgar Simo "bobbens" Extended and updated by aschiffler at ferzkopp dot net
Definition at line 22 of file testautomation_platform.c.
Referenced by platform_testTypes().
int platform_testDefaultInit | ( | void * | arg | ) |
Definition at line 254 of file testautomation_platform.c.
References SDL_GetError, SDL_Init, SDL_INIT_EVERYTHING, SDL_WasInit, SDLTest_AssertCheck(), and TEST_COMPLETED.
int platform_testEndianessAndSwap | ( | void * | arg | ) |
Tests platform endianness and SDL_SwapXY functions.
Definition at line 54 of file testautomation_platform.c.
References SDL_BIG_ENDIAN, SDL_BYTEORDER, SDL_LIL_ENDIAN, SDL_PRIX64, SDL_Swap16(), SDL_Swap32(), SDL_Swap64(), SDLTest_AssertCheck(), and TEST_COMPLETED.
int platform_testGetFunctions | ( | void * | arg | ) |
Definition at line 110 of file testautomation_platform.c.
References NULL, SDL_GetCPUCacheLineSize, SDL_GetCPUCount, SDL_GetPlatform, SDL_GetRevision, SDL_GetRevisionNumber, SDL_strlen, SDLTest_AssertCheck(), SDLTest_AssertPass(), and TEST_COMPLETED.
int platform_testGetPowerInfo | ( | void * | arg | ) |
Definition at line 453 of file testautomation_platform.c.
References NULL, SDL_GetPowerInfo, SDL_POWERSTATE_CHARGED, SDL_POWERSTATE_CHARGING, SDL_POWERSTATE_NO_BATTERY, SDL_POWERSTATE_ON_BATTERY, SDL_POWERSTATE_UNKNOWN, SDLTest_AssertCheck(), SDLTest_AssertPass(), state, and TEST_COMPLETED.
int platform_testGetSetClearError | ( | void * | arg | ) |
Definition at line 280 of file testautomation_platform.c.
References NULL, SDL_ClearError, SDL_GetError, SDL_SetError, SDL_strcmp, SDL_strlen, SDLTest_AssertCheck(), SDLTest_AssertPass(), and TEST_COMPLETED.
int platform_testGetVersion | ( | void * | arg | ) |
Definition at line 208 of file testautomation_platform.c.
References SDL_version::major, SDL_version::minor, SDL_GetVersion, SDL_MAJOR_VERSION, SDL_MINOR_VERSION, SDLTest_AssertCheck(), and TEST_COMPLETED.
int platform_testHasFunctions | ( | void * | arg | ) |
Definition at line 164 of file testautomation_platform.c.
References SDL_Has3DNow, SDL_HasAltiVec, SDL_HasAVX, SDL_HasMMX, SDL_HasRDTSC, SDL_HasSSE, SDL_HasSSE2, SDL_HasSSE3, SDL_HasSSE41, SDL_HasSSE42, SDLTest_AssertPass(), and TEST_COMPLETED.
int platform_testSDLVersion | ( | void * | arg | ) |
Definition at line 231 of file testautomation_platform.c.
References SDL_version::major, SDL_version::minor, SDL_MAJOR_VERSION, SDL_MINOR_VERSION, SDL_VERSION, SDLTest_AssertCheck(), and TEST_COMPLETED.
int platform_testSetErrorEmptyInput | ( | void * | arg | ) |
Definition at line 332 of file testautomation_platform.c.
References NULL, SDL_ClearError, SDL_GetError, SDL_SetError, SDL_strcmp, SDL_strlen, SDLTest_AssertCheck(), SDLTest_AssertPass(), and TEST_COMPLETED.
int platform_testSetErrorInvalidInput | ( | void * | arg | ) |
Definition at line 370 of file testautomation_platform.c.
References NULL, SDL_ClearError, SDL_GetError, SDL_SetError, SDL_strcmp, SDL_strlen, SDLTest_AssertCheck(), SDLTest_AssertPass(), and TEST_COMPLETED.
int platform_testTypes | ( | void * | arg | ) |
Tests type sizes.
Definition at line 32 of file testautomation_platform.c.
References _compareSizeOfType(), SDLTest_AssertCheck(), and TEST_COMPLETED.
|
static |
Definition at line 529 of file testautomation_platform.c.
|
static |
Definition at line 556 of file testautomation_platform.c.
|
static |
Definition at line 559 of file testautomation_platform.c.
|
static |
Definition at line 532 of file testautomation_platform.c.
|
static |
Definition at line 535 of file testautomation_platform.c.
|
static |
Definition at line 538 of file testautomation_platform.c.
|
static |
Definition at line 541 of file testautomation_platform.c.
|
static |
Definition at line 544 of file testautomation_platform.c.
|
static |
Definition at line 547 of file testautomation_platform.c.
|
static |
Definition at line 550 of file testautomation_platform.c.
|
static |
Definition at line 553 of file testautomation_platform.c.
|
static |
Definition at line 563 of file testautomation_platform.c.
SDLTest_TestSuiteReference platformTestSuite |
Definition at line 579 of file testautomation_platform.c.