testautomation_platform.c 18 KB

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