testautomation_platform.c 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588
  1. /**
  2. * Original code: automated SDL platform test written by Edgar Simo "bobbens"
  3. * Extended and updated by aschiffler at ferzkopp dot net
  4. */
  5. #include <stdio.h>
  6. #include "SDL.h"
  7. #include "SDL_test.h"
  8. /* ================= Test Case Implementation ================== */
  9. /* Helper functions */
  10. /**
  11. * @brief Compare sizes of types.
  12. *
  13. * @note Watcom C flags these as Warning 201: "Unreachable code" if you just
  14. * compare them directly, so we push it through a function to keep the
  15. * compiler quiet. --ryan.
  16. */
  17. static int _compareSizeOfType( size_t sizeoftype, size_t hardcodetype )
  18. {
  19. return sizeoftype != hardcodetype;
  20. }
  21. /* Test case functions */
  22. /**
  23. * @brief Tests type sizes.
  24. */
  25. int platform_testTypes(void *arg)
  26. {
  27. int ret;
  28. ret = _compareSizeOfType( sizeof(Uint8), 1 );
  29. SDLTest_AssertCheck( ret == 0, "sizeof(Uint8) = %lu, expected 1", (unsigned long)sizeof(Uint8) );
  30. ret = _compareSizeOfType( sizeof(Uint16), 2 );
  31. SDLTest_AssertCheck( ret == 0, "sizeof(Uint16) = %lu, expected 2", (unsigned long)sizeof(Uint16) );
  32. ret = _compareSizeOfType( sizeof(Uint32), 4 );
  33. SDLTest_AssertCheck( ret == 0, "sizeof(Uint32) = %lu, expected 4", (unsigned long)sizeof(Uint32) );
  34. ret = _compareSizeOfType( sizeof(Uint64), 8 );
  35. SDLTest_AssertCheck( ret == 0, "sizeof(Uint64) = %lu, expected 8", (unsigned long)sizeof(Uint64) );
  36. return TEST_COMPLETED;
  37. }
  38. /**
  39. * @brief Tests platform endianness and SDL_SwapXY functions.
  40. */
  41. int platform_testEndianessAndSwap(void *arg)
  42. {
  43. int real_byteorder;
  44. Uint16 value = 0x1234;
  45. Uint16 value16 = 0xCDAB;
  46. Uint16 swapped16 = 0xABCD;
  47. Uint32 value32 = 0xEFBEADDE;
  48. Uint32 swapped32 = 0xDEADBEEF;
  49. Uint64 value64, swapped64;
  50. value64 = 0xEFBEADDE;
  51. value64 <<= 32;
  52. value64 |= 0xCDAB3412;
  53. swapped64 = 0x1234ABCD;
  54. swapped64 <<= 32;
  55. swapped64 |= 0xDEADBEEF;
  56. if ((*((char *) &value) >> 4) == 0x1) {
  57. real_byteorder = SDL_BIG_ENDIAN;
  58. } else {
  59. real_byteorder = SDL_LIL_ENDIAN;
  60. }
  61. /* Test endianness. */
  62. SDLTest_AssertCheck( real_byteorder == SDL_BYTEORDER,
  63. "Machine detected as %s endian, appears to be %s endian.",
  64. (SDL_BYTEORDER == SDL_LIL_ENDIAN) ? "little" : "big",
  65. (real_byteorder == SDL_LIL_ENDIAN) ? "little" : "big" );
  66. /* Test 16 swap. */
  67. SDLTest_AssertCheck( SDL_Swap16(value16) == swapped16,
  68. "SDL_Swap16(): 16 bit swapped: 0x%X => 0x%X",
  69. value16, SDL_Swap16(value16) );
  70. /* Test 32 swap. */
  71. SDLTest_AssertCheck( SDL_Swap32(value32) == swapped32,
  72. "SDL_Swap32(): 32 bit swapped: 0x%X => 0x%X",
  73. value32, SDL_Swap32(value32) );
  74. /* Test 64 swap. */
  75. SDLTest_AssertCheck( SDL_Swap64(value64) == swapped64,
  76. #ifdef _MSC_VER
  77. "SDL_Swap64(): 64 bit swapped: 0x%I64X => 0x%I64X",
  78. #else
  79. "SDL_Swap64(): 64 bit swapped: 0x%llX => 0x%llX",
  80. #endif
  81. value64, SDL_Swap64(value64) );
  82. return TEST_COMPLETED;
  83. }
  84. /* !
  85. * \brief Tests SDL_GetXYZ() functions
  86. * \sa
  87. * http://wiki.libsdl.org/moin.cgi/SDL_GetPlatform
  88. * http://wiki.libsdl.org/moin.cgi/SDL_GetCPUCount
  89. * http://wiki.libsdl.org/moin.cgi/SDL_GetCPUCacheLineSize
  90. * http://wiki.libsdl.org/moin.cgi/SDL_GetRevision
  91. * http://wiki.libsdl.org/moin.cgi/SDL_GetRevisionNumber
  92. */
  93. int platform_testGetFunctions (void *arg)
  94. {
  95. char *platform;
  96. char *revision;
  97. int ret;
  98. int len;
  99. platform = (char *)SDL_GetPlatform();
  100. SDLTest_AssertPass("SDL_GetPlatform()");
  101. SDLTest_AssertCheck(platform != NULL, "SDL_GetPlatform() != NULL");
  102. if (platform != NULL) {
  103. len = SDL_strlen(platform);
  104. SDLTest_AssertCheck(len > 0,
  105. "SDL_GetPlatform(): expected non-empty platform, was platform: '%s', len: %i",
  106. platform,
  107. len);
  108. }
  109. ret = SDL_GetCPUCount();
  110. SDLTest_AssertPass("SDL_GetCPUCount()");
  111. SDLTest_AssertCheck(ret > 0,
  112. "SDL_GetCPUCount(): expected count > 0, was: %i",
  113. ret);
  114. ret = SDL_GetCPUCacheLineSize();
  115. SDLTest_AssertPass("SDL_GetCPUCacheLineSize()");
  116. SDLTest_AssertCheck(ret >= 0,
  117. "SDL_GetCPUCacheLineSize(): expected size >= 0, was: %i",
  118. ret);
  119. revision = (char *)SDL_GetRevision();
  120. SDLTest_AssertPass("SDL_GetRevision()");
  121. SDLTest_AssertCheck(revision != NULL, "SDL_GetRevision() != NULL");
  122. ret = SDL_GetRevisionNumber();
  123. SDLTest_AssertPass("SDL_GetRevisionNumber()");
  124. return TEST_COMPLETED;
  125. }
  126. /* !
  127. * \brief Tests SDL_HasXYZ() functions
  128. * \sa
  129. * http://wiki.libsdl.org/moin.cgi/SDL_Has3DNow
  130. * http://wiki.libsdl.org/moin.cgi/SDL_HasAltiVec
  131. * http://wiki.libsdl.org/moin.cgi/SDL_HasMMX
  132. * http://wiki.libsdl.org/moin.cgi/SDL_HasRDTSC
  133. * http://wiki.libsdl.org/moin.cgi/SDL_HasSSE
  134. * http://wiki.libsdl.org/moin.cgi/SDL_HasSSE2
  135. * http://wiki.libsdl.org/moin.cgi/SDL_HasSSE3
  136. * http://wiki.libsdl.org/moin.cgi/SDL_HasSSE41
  137. * http://wiki.libsdl.org/moin.cgi/SDL_HasSSE42
  138. * http://wiki.libsdl.org/moin.cgi/SDL_HasAVX
  139. */
  140. int platform_testHasFunctions (void *arg)
  141. {
  142. int ret;
  143. /* TODO: independently determine and compare values as well */
  144. ret = SDL_HasRDTSC();
  145. SDLTest_AssertPass("SDL_HasRDTSC()");
  146. ret = SDL_HasAltiVec();
  147. SDLTest_AssertPass("SDL_HasAltiVec()");
  148. ret = SDL_HasMMX();
  149. SDLTest_AssertPass("SDL_HasMMX()");
  150. ret = SDL_Has3DNow();
  151. SDLTest_AssertPass("SDL_Has3DNow()");
  152. ret = SDL_HasSSE();
  153. SDLTest_AssertPass("SDL_HasSSE()");
  154. ret = SDL_HasSSE2();
  155. SDLTest_AssertPass("SDL_HasSSE2()");
  156. ret = SDL_HasSSE3();
  157. SDLTest_AssertPass("SDL_HasSSE3()");
  158. ret = SDL_HasSSE41();
  159. SDLTest_AssertPass("SDL_HasSSE41()");
  160. ret = SDL_HasSSE42();
  161. SDLTest_AssertPass("SDL_HasSSE42()");
  162. ret = SDL_HasAVX();
  163. SDLTest_AssertPass("SDL_HasAVX()");
  164. return TEST_COMPLETED;
  165. }
  166. /* !
  167. * \brief Tests SDL_GetVersion
  168. * \sa
  169. * http://wiki.libsdl.org/moin.cgi/SDL_GetVersion
  170. */
  171. int platform_testGetVersion(void *arg)
  172. {
  173. SDL_version linked;
  174. int major = SDL_MAJOR_VERSION;
  175. int minor = SDL_MINOR_VERSION;
  176. SDL_GetVersion(&linked);
  177. SDLTest_AssertCheck( linked.major >= major,
  178. "SDL_GetVersion(): returned major %i (>= %i)",
  179. linked.major,
  180. major);
  181. SDLTest_AssertCheck( linked.minor >= minor,
  182. "SDL_GetVersion(): returned minor %i (>= %i)",
  183. linked.minor,
  184. minor);
  185. return TEST_COMPLETED;
  186. }
  187. /* !
  188. * \brief Tests SDL_VERSION macro
  189. */
  190. int platform_testSDLVersion(void *arg)
  191. {
  192. SDL_version compiled;
  193. int major = SDL_MAJOR_VERSION;
  194. int minor = SDL_MINOR_VERSION;
  195. SDL_VERSION(&compiled);
  196. SDLTest_AssertCheck( compiled.major >= major,
  197. "SDL_VERSION() returned major %i (>= %i)",
  198. compiled.major,
  199. major);
  200. SDLTest_AssertCheck( compiled.minor >= minor,
  201. "SDL_VERSION() returned minor %i (>= %i)",
  202. compiled.minor,
  203. minor);
  204. return TEST_COMPLETED;
  205. }
  206. /* !
  207. * \brief Tests default SDL_Init
  208. */
  209. int platform_testDefaultInit(void *arg)
  210. {
  211. int ret;
  212. int subsystem;
  213. subsystem = SDL_WasInit(SDL_INIT_EVERYTHING);
  214. SDLTest_AssertCheck( subsystem != 0,
  215. "SDL_WasInit(0): returned %i, expected != 0",
  216. subsystem);
  217. ret = SDL_Init(SDL_WasInit(SDL_INIT_EVERYTHING));
  218. SDLTest_AssertCheck( ret == 0,
  219. "SDL_Init(0): returned %i, expected 0, error: %s",
  220. ret,
  221. SDL_GetError());
  222. return TEST_COMPLETED;
  223. }
  224. /* !
  225. * \brief Tests SDL_Get/Set/ClearError
  226. * \sa
  227. * http://wiki.libsdl.org/moin.cgi/SDL_GetError
  228. * http://wiki.libsdl.org/moin.cgi/SDL_SetError
  229. * http://wiki.libsdl.org/moin.cgi/SDL_ClearError
  230. */
  231. int platform_testGetSetClearError(void *arg)
  232. {
  233. int result;
  234. const char *testError = "Testing";
  235. char *lastError;
  236. int len;
  237. SDL_ClearError();
  238. SDLTest_AssertPass("SDL_ClearError()");
  239. lastError = (char *)SDL_GetError();
  240. SDLTest_AssertPass("SDL_GetError()");
  241. SDLTest_AssertCheck(lastError != NULL,
  242. "SDL_GetError() != NULL");
  243. if (lastError != NULL)
  244. {
  245. len = SDL_strlen(lastError);
  246. SDLTest_AssertCheck(len == 0,
  247. "SDL_GetError(): no message expected, len: %i", len);
  248. }
  249. result = SDL_SetError("%s", testError);
  250. SDLTest_AssertPass("SDL_SetError()");
  251. SDLTest_AssertCheck(result == -1, "SDL_SetError: expected -1, got: %i", result);
  252. lastError = (char *)SDL_GetError();
  253. SDLTest_AssertCheck(lastError != NULL,
  254. "SDL_GetError() != NULL");
  255. if (lastError != NULL)
  256. {
  257. len = SDL_strlen(lastError);
  258. SDLTest_AssertCheck(len == SDL_strlen(testError),
  259. "SDL_GetError(): expected message len %i, was len: %i",
  260. SDL_strlen(testError),
  261. len);
  262. SDLTest_AssertCheck(SDL_strcmp(lastError, testError) == 0,
  263. "SDL_GetError(): expected message %s, was message: %s",
  264. testError,
  265. lastError);
  266. }
  267. /* Clean up */
  268. SDL_ClearError();
  269. SDLTest_AssertPass("SDL_ClearError()");
  270. return TEST_COMPLETED;
  271. }
  272. /* !
  273. * \brief Tests SDL_SetError with empty input
  274. * \sa
  275. * http://wiki.libsdl.org/moin.cgi/SDL_SetError
  276. */
  277. int platform_testSetErrorEmptyInput(void *arg)
  278. {
  279. int result;
  280. const char *testError = "";
  281. char *lastError;
  282. int len;
  283. result = SDL_SetError("%s", testError);
  284. SDLTest_AssertPass("SDL_SetError()");
  285. SDLTest_AssertCheck(result == -1, "SDL_SetError: expected -1, got: %i", result);
  286. lastError = (char *)SDL_GetError();
  287. SDLTest_AssertCheck(lastError != NULL,
  288. "SDL_GetError() != NULL");
  289. if (lastError != NULL)
  290. {
  291. len = SDL_strlen(lastError);
  292. SDLTest_AssertCheck(len == SDL_strlen(testError),
  293. "SDL_GetError(): expected message len %i, was len: %i",
  294. SDL_strlen(testError),
  295. len);
  296. SDLTest_AssertCheck(SDL_strcmp(lastError, testError) == 0,
  297. "SDL_GetError(): expected message '%s', was message: '%s'",
  298. testError,
  299. lastError);
  300. }
  301. /* Clean up */
  302. SDL_ClearError();
  303. SDLTest_AssertPass("SDL_ClearError()");
  304. return TEST_COMPLETED;
  305. }
  306. /* !
  307. * \brief Tests SDL_SetError with invalid input
  308. * \sa
  309. * http://wiki.libsdl.org/moin.cgi/SDL_SetError
  310. */
  311. int platform_testSetErrorInvalidInput(void *arg)
  312. {
  313. int result;
  314. const char *invalidError = NULL;
  315. const char *probeError = "Testing";
  316. char *lastError;
  317. int len;
  318. /* Reset */
  319. SDL_ClearError();
  320. SDLTest_AssertPass("SDL_ClearError()");
  321. /* Check for no-op */
  322. result = SDL_SetError(invalidError);
  323. SDLTest_AssertPass("SDL_SetError()");
  324. SDLTest_AssertCheck(result == -1, "SDL_SetError: expected -1, got: %i", result);
  325. lastError = (char *)SDL_GetError();
  326. SDLTest_AssertCheck(lastError != NULL,
  327. "SDL_GetError() != NULL");
  328. if (lastError != NULL)
  329. {
  330. len = SDL_strlen(lastError);
  331. SDLTest_AssertCheck(len == 0,
  332. "SDL_GetError(): expected message len 0, was len: %i",
  333. len);
  334. }
  335. /* Set */
  336. result = SDL_SetError(probeError);
  337. SDLTest_AssertPass("SDL_SetError('%s')", probeError);
  338. SDLTest_AssertCheck(result == -1, "SDL_SetError: expected -1, got: %i", result);
  339. /* Check for no-op */
  340. result = SDL_SetError(invalidError);
  341. SDLTest_AssertPass("SDL_SetError(NULL)");
  342. SDLTest_AssertCheck(result == -1, "SDL_SetError: expected -1, got: %i", result);
  343. lastError = (char *)SDL_GetError();
  344. SDLTest_AssertCheck(lastError != NULL,
  345. "SDL_GetError() != NULL");
  346. if (lastError != NULL)
  347. {
  348. len = SDL_strlen(lastError);
  349. SDLTest_AssertCheck(len == 0,
  350. "SDL_GetError(): expected message len 0, was len: %i",
  351. len);
  352. }
  353. /* Reset */
  354. SDL_ClearError();
  355. SDLTest_AssertPass("SDL_ClearError()");
  356. /* Set and check */
  357. result = SDL_SetError(probeError);
  358. SDLTest_AssertPass("SDL_SetError()");
  359. SDLTest_AssertCheck(result == -1, "SDL_SetError: expected -1, got: %i", result);
  360. lastError = (char *)SDL_GetError();
  361. SDLTest_AssertCheck(lastError != NULL,
  362. "SDL_GetError() != NULL");
  363. if (lastError != NULL)
  364. {
  365. len = SDL_strlen(lastError);
  366. SDLTest_AssertCheck(len == SDL_strlen(probeError),
  367. "SDL_GetError(): expected message len %i, was len: %i",
  368. SDL_strlen(probeError),
  369. len);
  370. SDLTest_AssertCheck(SDL_strcmp(lastError, probeError) == 0,
  371. "SDL_GetError(): expected message '%s', was message: '%s'",
  372. probeError,
  373. lastError);
  374. }
  375. /* Clean up */
  376. SDL_ClearError();
  377. SDLTest_AssertPass("SDL_ClearError()");
  378. return TEST_COMPLETED;
  379. }
  380. /* !
  381. * \brief Tests SDL_GetPowerInfo
  382. * \sa
  383. * http://wiki.libsdl.org/moin.cgi/SDL_GetPowerInfo
  384. */
  385. int platform_testGetPowerInfo(void *arg)
  386. {
  387. SDL_PowerState state;
  388. SDL_PowerState stateAgain;
  389. int secs;
  390. int secsAgain;
  391. int pct;
  392. int pctAgain;
  393. state = SDL_GetPowerInfo(&secs, &pct);
  394. SDLTest_AssertPass("SDL_GetPowerInfo()");
  395. SDLTest_AssertCheck(
  396. state==SDL_POWERSTATE_UNKNOWN ||
  397. state==SDL_POWERSTATE_ON_BATTERY ||
  398. state==SDL_POWERSTATE_NO_BATTERY ||
  399. state==SDL_POWERSTATE_CHARGING ||
  400. state==SDL_POWERSTATE_CHARGED,
  401. "SDL_GetPowerInfo(): state %i is one of the expected values",
  402. (int)state);
  403. if (state==SDL_POWERSTATE_ON_BATTERY)
  404. {
  405. SDLTest_AssertCheck(
  406. secs >= 0,
  407. "SDL_GetPowerInfo(): on battery, secs >= 0, was: %i",
  408. secs);
  409. SDLTest_AssertCheck(
  410. (pct >= 0) && (pct <= 100),
  411. "SDL_GetPowerInfo(): on battery, pct=[0,100], was: %i",
  412. pct);
  413. }
  414. if (state==SDL_POWERSTATE_UNKNOWN ||
  415. state==SDL_POWERSTATE_NO_BATTERY)
  416. {
  417. SDLTest_AssertCheck(
  418. secs == -1,
  419. "SDL_GetPowerInfo(): no battery, secs == -1, was: %i",
  420. secs);
  421. SDLTest_AssertCheck(
  422. pct == -1,
  423. "SDL_GetPowerInfo(): no battery, pct == -1, was: %i",
  424. pct);
  425. }
  426. /* Partial return value variations */
  427. stateAgain = SDL_GetPowerInfo(&secsAgain, NULL);
  428. SDLTest_AssertCheck(
  429. state==stateAgain,
  430. "State %i returned when only 'secs' requested",
  431. stateAgain);
  432. SDLTest_AssertCheck(
  433. secs==secsAgain,
  434. "Value %i matches when only 'secs' requested",
  435. secsAgain);
  436. stateAgain = SDL_GetPowerInfo(NULL, &pctAgain);
  437. SDLTest_AssertCheck(
  438. state==stateAgain,
  439. "State %i returned when only 'pct' requested",
  440. stateAgain);
  441. SDLTest_AssertCheck(
  442. pct==pctAgain,
  443. "Value %i matches when only 'pct' requested",
  444. pctAgain);
  445. stateAgain = SDL_GetPowerInfo(NULL, NULL);
  446. SDLTest_AssertCheck(
  447. state==stateAgain,
  448. "State %i returned when no value requested",
  449. stateAgain);
  450. return TEST_COMPLETED;
  451. }
  452. /* ================= Test References ================== */
  453. /* Platform test cases */
  454. static const SDLTest_TestCaseReference platformTest1 =
  455. { (SDLTest_TestCaseFp)platform_testTypes, "platform_testTypes", "Tests predefined types", TEST_ENABLED};
  456. static const SDLTest_TestCaseReference platformTest2 =
  457. { (SDLTest_TestCaseFp)platform_testEndianessAndSwap, "platform_testEndianessAndSwap", "Tests endianess and swap functions", TEST_ENABLED};
  458. static const SDLTest_TestCaseReference platformTest3 =
  459. { (SDLTest_TestCaseFp)platform_testGetFunctions, "platform_testGetFunctions", "Tests various SDL_GetXYZ functions", TEST_ENABLED};
  460. static const SDLTest_TestCaseReference platformTest4 =
  461. { (SDLTest_TestCaseFp)platform_testHasFunctions, "platform_testHasFunctions", "Tests various SDL_HasXYZ functions", TEST_ENABLED};
  462. static const SDLTest_TestCaseReference platformTest5 =
  463. { (SDLTest_TestCaseFp)platform_testGetVersion, "platform_testGetVersion", "Tests SDL_GetVersion function", TEST_ENABLED};
  464. static const SDLTest_TestCaseReference platformTest6 =
  465. { (SDLTest_TestCaseFp)platform_testSDLVersion, "platform_testSDLVersion", "Tests SDL_VERSION macro", TEST_ENABLED};
  466. static const SDLTest_TestCaseReference platformTest7 =
  467. { (SDLTest_TestCaseFp)platform_testDefaultInit, "platform_testDefaultInit", "Tests default SDL_Init", TEST_ENABLED};
  468. static const SDLTest_TestCaseReference platformTest8 =
  469. { (SDLTest_TestCaseFp)platform_testGetSetClearError, "platform_testGetSetClearError", "Tests SDL_Get/Set/ClearError", TEST_ENABLED};
  470. static const SDLTest_TestCaseReference platformTest9 =
  471. { (SDLTest_TestCaseFp)platform_testSetErrorEmptyInput, "platform_testSetErrorEmptyInput", "Tests SDL_SetError with empty input", TEST_ENABLED};
  472. static const SDLTest_TestCaseReference platformTest10 =
  473. { (SDLTest_TestCaseFp)platform_testSetErrorInvalidInput, "platform_testSetErrorInvalidInput", "Tests SDL_SetError with invalid input", TEST_ENABLED};
  474. static const SDLTest_TestCaseReference platformTest11 =
  475. { (SDLTest_TestCaseFp)platform_testGetPowerInfo, "platform_testGetPowerInfo", "Tests SDL_GetPowerInfo function", TEST_ENABLED };
  476. /* Sequence of Platform test cases */
  477. static const SDLTest_TestCaseReference *platformTests[] = {
  478. &platformTest1,
  479. &platformTest2,
  480. &platformTest3,
  481. &platformTest4,
  482. &platformTest5,
  483. &platformTest6,
  484. &platformTest7,
  485. &platformTest8,
  486. &platformTest9,
  487. &platformTest10,
  488. &platformTest11,
  489. NULL
  490. };
  491. /* Platform test suite (global) */
  492. SDLTest_TestSuiteReference platformTestSuite = {
  493. "Platform",
  494. NULL,
  495. platformTests,
  496. NULL
  497. };