testautomation_platform.c 18 KB

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