🛠️🐜 Antkeeper superbuild with dependencies included https://antkeeper.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

610 lines
19 KiB

  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) = %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. 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
  101. * http://wiki.libsdl.org/SDL_GetPlatform
  102. * http://wiki.libsdl.org/SDL_GetCPUCount
  103. * http://wiki.libsdl.org/SDL_GetCPUCacheLineSize
  104. * http://wiki.libsdl.org/SDL_GetRevision
  105. * http://wiki.libsdl.org/SDL_GetRevisionNumber
  106. */
  107. int platform_testGetFunctions(void *arg)
  108. {
  109. char *platform;
  110. char *revision;
  111. int ret;
  112. size_t len;
  113. platform = (char *)SDL_GetPlatform();
  114. SDLTest_AssertPass("SDL_GetPlatform()");
  115. SDLTest_AssertCheck(platform != NULL, "SDL_GetPlatform() != NULL");
  116. if (platform != NULL) {
  117. len = SDL_strlen(platform);
  118. SDLTest_AssertCheck(len > 0,
  119. "SDL_GetPlatform(): expected non-empty platform, was platform: '%s', len: %i",
  120. platform,
  121. (int)len);
  122. }
  123. ret = SDL_GetCPUCount();
  124. SDLTest_AssertPass("SDL_GetCPUCount()");
  125. SDLTest_AssertCheck(ret > 0,
  126. "SDL_GetCPUCount(): expected count > 0, was: %i",
  127. ret);
  128. ret = SDL_GetCPUCacheLineSize();
  129. SDLTest_AssertPass("SDL_GetCPUCacheLineSize()");
  130. SDLTest_AssertCheck(ret >= 0,
  131. "SDL_GetCPUCacheLineSize(): expected size >= 0, was: %i",
  132. ret);
  133. revision = (char *)SDL_GetRevision();
  134. SDLTest_AssertPass("SDL_GetRevision()");
  135. SDLTest_AssertCheck(revision != NULL, "SDL_GetRevision() != NULL");
  136. return TEST_COMPLETED;
  137. }
  138. /* !
  139. * \brief Tests SDL_HasXYZ() functions
  140. * \sa
  141. * http://wiki.libsdl.org/SDL_Has3DNow
  142. * http://wiki.libsdl.org/SDL_HasAltiVec
  143. * http://wiki.libsdl.org/SDL_HasMMX
  144. * http://wiki.libsdl.org/SDL_HasRDTSC
  145. * http://wiki.libsdl.org/SDL_HasSSE
  146. * http://wiki.libsdl.org/SDL_HasSSE2
  147. * http://wiki.libsdl.org/SDL_HasSSE3
  148. * http://wiki.libsdl.org/SDL_HasSSE41
  149. * http://wiki.libsdl.org/SDL_HasSSE42
  150. * http://wiki.libsdl.org/SDL_HasAVX
  151. */
  152. int platform_testHasFunctions(void *arg)
  153. {
  154. /* TODO: independently determine and compare values as well */
  155. SDL_HasRDTSC();
  156. SDLTest_AssertPass("SDL_HasRDTSC()");
  157. SDL_HasAltiVec();
  158. SDLTest_AssertPass("SDL_HasAltiVec()");
  159. SDL_HasMMX();
  160. SDLTest_AssertPass("SDL_HasMMX()");
  161. SDL_Has3DNow();
  162. SDLTest_AssertPass("SDL_Has3DNow()");
  163. SDL_HasSSE();
  164. SDLTest_AssertPass("SDL_HasSSE()");
  165. SDL_HasSSE2();
  166. SDLTest_AssertPass("SDL_HasSSE2()");
  167. SDL_HasSSE3();
  168. SDLTest_AssertPass("SDL_HasSSE3()");
  169. SDL_HasSSE41();
  170. SDLTest_AssertPass("SDL_HasSSE41()");
  171. SDL_HasSSE42();
  172. SDLTest_AssertPass("SDL_HasSSE42()");
  173. SDL_HasAVX();
  174. SDLTest_AssertPass("SDL_HasAVX()");
  175. return TEST_COMPLETED;
  176. }
  177. /* !
  178. * \brief Tests SDL_GetVersion
  179. * \sa
  180. * http://wiki.libsdl.org/SDL_GetVersion
  181. */
  182. int platform_testGetVersion(void *arg)
  183. {
  184. SDL_version linked;
  185. int major = SDL_MAJOR_VERSION;
  186. int minor = SDL_MINOR_VERSION;
  187. SDL_GetVersion(&linked);
  188. SDLTest_AssertCheck(linked.major >= major,
  189. "SDL_GetVersion(): returned major %i (>= %i)",
  190. linked.major,
  191. major);
  192. SDLTest_AssertCheck(linked.minor >= minor,
  193. "SDL_GetVersion(): returned minor %i (>= %i)",
  194. linked.minor,
  195. minor);
  196. return TEST_COMPLETED;
  197. }
  198. /* !
  199. * \brief Tests SDL_VERSION macro
  200. */
  201. int platform_testSDLVersion(void *arg)
  202. {
  203. SDL_version compiled;
  204. int major = SDL_MAJOR_VERSION;
  205. int minor = SDL_MINOR_VERSION;
  206. SDL_VERSION(&compiled);
  207. SDLTest_AssertCheck(compiled.major >= major,
  208. "SDL_VERSION() returned major %i (>= %i)",
  209. compiled.major,
  210. major);
  211. SDLTest_AssertCheck(compiled.minor >= minor,
  212. "SDL_VERSION() returned minor %i (>= %i)",
  213. compiled.minor,
  214. minor);
  215. return TEST_COMPLETED;
  216. }
  217. /* !
  218. * \brief Tests default SDL_Init
  219. */
  220. int platform_testDefaultInit(void *arg)
  221. {
  222. int ret;
  223. int subsystem;
  224. subsystem = SDL_WasInit(SDL_INIT_EVERYTHING);
  225. SDLTest_AssertCheck(subsystem != 0,
  226. "SDL_WasInit(0): returned %i, expected != 0",
  227. subsystem);
  228. ret = SDL_Init(SDL_WasInit(SDL_INIT_EVERYTHING));
  229. SDLTest_AssertCheck(ret == 0,
  230. "SDL_Init(0): returned %i, expected 0, error: %s",
  231. ret,
  232. SDL_GetError());
  233. return TEST_COMPLETED;
  234. }
  235. /* !
  236. * \brief Tests SDL_Get/Set/ClearError
  237. * \sa
  238. * http://wiki.libsdl.org/SDL_GetError
  239. * http://wiki.libsdl.org/SDL_SetError
  240. * http://wiki.libsdl.org/SDL_ClearError
  241. */
  242. int platform_testGetSetClearError(void *arg)
  243. {
  244. int result;
  245. const char *testError = "Testing";
  246. char *lastError;
  247. size_t len;
  248. SDL_ClearError();
  249. SDLTest_AssertPass("SDL_ClearError()");
  250. lastError = (char *)SDL_GetError();
  251. SDLTest_AssertPass("SDL_GetError()");
  252. SDLTest_AssertCheck(lastError != NULL,
  253. "SDL_GetError() != NULL");
  254. if (lastError != NULL) {
  255. len = SDL_strlen(lastError);
  256. SDLTest_AssertCheck(len == 0,
  257. "SDL_GetError(): no message expected, len: %i", (int)len);
  258. }
  259. result = SDL_SetError("%s", testError);
  260. SDLTest_AssertPass("SDL_SetError()");
  261. SDLTest_AssertCheck(result == -1, "SDL_SetError: expected -1, got: %i", result);
  262. lastError = (char *)SDL_GetError();
  263. SDLTest_AssertCheck(lastError != NULL,
  264. "SDL_GetError() != NULL");
  265. if (lastError != NULL) {
  266. len = SDL_strlen(lastError);
  267. SDLTest_AssertCheck(len == SDL_strlen(testError),
  268. "SDL_GetError(): expected message len %i, was len: %i",
  269. (int)SDL_strlen(testError),
  270. (int)len);
  271. SDLTest_AssertCheck(SDL_strcmp(lastError, testError) == 0,
  272. "SDL_GetError(): expected message %s, was message: %s",
  273. testError,
  274. lastError);
  275. }
  276. /* Clean up */
  277. SDL_ClearError();
  278. SDLTest_AssertPass("SDL_ClearError()");
  279. return TEST_COMPLETED;
  280. }
  281. /* !
  282. * \brief Tests SDL_SetError with empty input
  283. * \sa
  284. * http://wiki.libsdl.org/SDL_SetError
  285. */
  286. int platform_testSetErrorEmptyInput(void *arg)
  287. {
  288. int result;
  289. const char *testError = "";
  290. char *lastError;
  291. size_t len;
  292. result = SDL_SetError("%s", testError);
  293. SDLTest_AssertPass("SDL_SetError()");
  294. SDLTest_AssertCheck(result == -1, "SDL_SetError: expected -1, got: %i", result);
  295. lastError = (char *)SDL_GetError();
  296. SDLTest_AssertCheck(lastError != NULL,
  297. "SDL_GetError() != NULL");
  298. if (lastError != NULL) {
  299. len = SDL_strlen(lastError);
  300. SDLTest_AssertCheck(len == SDL_strlen(testError),
  301. "SDL_GetError(): expected message len %i, was len: %i",
  302. (int)SDL_strlen(testError),
  303. (int)len);
  304. SDLTest_AssertCheck(SDL_strcmp(lastError, testError) == 0,
  305. "SDL_GetError(): expected message '%s', was message: '%s'",
  306. testError,
  307. lastError);
  308. }
  309. /* Clean up */
  310. SDL_ClearError();
  311. SDLTest_AssertPass("SDL_ClearError()");
  312. return TEST_COMPLETED;
  313. }
  314. #if defined(HAVE_WFORMAT_OVERFLOW)
  315. #pragma GCC diagnostic push
  316. #pragma GCC diagnostic ignored "-Wformat-overflow"
  317. #endif
  318. /* !
  319. * \brief Tests SDL_SetError with invalid input
  320. * \sa
  321. * http://wiki.libsdl.org/SDL_SetError
  322. */
  323. int platform_testSetErrorInvalidInput(void *arg)
  324. {
  325. int result;
  326. const char *invalidError = NULL;
  327. const char *probeError = "Testing";
  328. char *lastError;
  329. size_t len;
  330. /* Reset */
  331. SDL_ClearError();
  332. SDLTest_AssertPass("SDL_ClearError()");
  333. /* Check for no-op */
  334. result = SDL_SetError("%s", invalidError);
  335. SDLTest_AssertPass("SDL_SetError()");
  336. SDLTest_AssertCheck(result == -1, "SDL_SetError: expected -1, got: %i", result);
  337. lastError = (char *)SDL_GetError();
  338. SDLTest_AssertCheck(lastError != NULL,
  339. "SDL_GetError() != NULL");
  340. if (lastError != NULL) {
  341. len = SDL_strlen(lastError);
  342. SDLTest_AssertCheck(len == 0 || SDL_strcmp(lastError, "(null)") == 0,
  343. "SDL_GetError(): expected message len 0, was len: %i",
  344. (int)len);
  345. }
  346. /* Set */
  347. result = SDL_SetError("%s", probeError);
  348. SDLTest_AssertPass("SDL_SetError('%s')", probeError);
  349. SDLTest_AssertCheck(result == -1, "SDL_SetError: expected -1, got: %i", result);
  350. /* Check for no-op */
  351. result = SDL_SetError("%s", invalidError);
  352. SDLTest_AssertPass("SDL_SetError(NULL)");
  353. SDLTest_AssertCheck(result == -1, "SDL_SetError: expected -1, got: %i", result);
  354. lastError = (char *)SDL_GetError();
  355. SDLTest_AssertCheck(lastError != NULL,
  356. "SDL_GetError() != NULL");
  357. if (lastError != NULL) {
  358. len = SDL_strlen(lastError);
  359. SDLTest_AssertCheck(len == 0 || SDL_strcmp(lastError, "(null)") == 0,
  360. "SDL_GetError(): expected message len 0, was len: %i",
  361. (int)len);
  362. }
  363. /* Reset */
  364. SDL_ClearError();
  365. SDLTest_AssertPass("SDL_ClearError()");
  366. /* Set and check */
  367. result = SDL_SetError("%s", probeError);
  368. SDLTest_AssertPass("SDL_SetError()");
  369. SDLTest_AssertCheck(result == -1, "SDL_SetError: expected -1, got: %i", result);
  370. lastError = (char *)SDL_GetError();
  371. SDLTest_AssertCheck(lastError != NULL,
  372. "SDL_GetError() != NULL");
  373. if (lastError != NULL) {
  374. len = SDL_strlen(lastError);
  375. SDLTest_AssertCheck(len == SDL_strlen(probeError),
  376. "SDL_GetError(): expected message len %i, was len: %i",
  377. (int)SDL_strlen(probeError),
  378. (int)len);
  379. SDLTest_AssertCheck(SDL_strcmp(lastError, probeError) == 0,
  380. "SDL_GetError(): expected message '%s', was message: '%s'",
  381. probeError,
  382. lastError);
  383. }
  384. /* Clean up */
  385. SDL_ClearError();
  386. SDLTest_AssertPass("SDL_ClearError()");
  387. return TEST_COMPLETED;
  388. }
  389. #if defined(HAVE_WFORMAT_OVERFLOW)
  390. #pragma GCC diagnostic pop
  391. #endif
  392. /* !
  393. * \brief Tests SDL_GetPowerInfo
  394. * \sa
  395. * http://wiki.libsdl.org/SDL_GetPowerInfo
  396. */
  397. int platform_testGetPowerInfo(void *arg)
  398. {
  399. SDL_PowerState state;
  400. SDL_PowerState stateAgain;
  401. int secs;
  402. int secsAgain;
  403. int pct;
  404. int pctAgain;
  405. state = SDL_GetPowerInfo(&secs, &pct);
  406. SDLTest_AssertPass("SDL_GetPowerInfo()");
  407. SDLTest_AssertCheck(
  408. state == SDL_POWERSTATE_UNKNOWN ||
  409. state == SDL_POWERSTATE_ON_BATTERY ||
  410. state == SDL_POWERSTATE_NO_BATTERY ||
  411. state == SDL_POWERSTATE_CHARGING ||
  412. state == SDL_POWERSTATE_CHARGED,
  413. "SDL_GetPowerInfo(): state %i is one of the expected values",
  414. (int)state);
  415. if (state == SDL_POWERSTATE_ON_BATTERY) {
  416. SDLTest_AssertCheck(
  417. secs >= 0,
  418. "SDL_GetPowerInfo(): on battery, secs >= 0, was: %i",
  419. secs);
  420. SDLTest_AssertCheck(
  421. (pct >= 0) && (pct <= 100),
  422. "SDL_GetPowerInfo(): on battery, pct=[0,100], was: %i",
  423. pct);
  424. }
  425. if (state == SDL_POWERSTATE_UNKNOWN ||
  426. state == SDL_POWERSTATE_NO_BATTERY) {
  427. SDLTest_AssertCheck(
  428. secs == -1,
  429. "SDL_GetPowerInfo(): no battery, secs == -1, was: %i",
  430. secs);
  431. SDLTest_AssertCheck(
  432. pct == -1,
  433. "SDL_GetPowerInfo(): no battery, pct == -1, was: %i",
  434. pct);
  435. }
  436. /* Partial return value variations */
  437. stateAgain = SDL_GetPowerInfo(&secsAgain, NULL);
  438. SDLTest_AssertCheck(
  439. state == stateAgain,
  440. "State %i returned when only 'secs' requested",
  441. stateAgain);
  442. SDLTest_AssertCheck(
  443. secs == secsAgain,
  444. "Value %i matches when only 'secs' requested",
  445. secsAgain);
  446. stateAgain = SDL_GetPowerInfo(NULL, &pctAgain);
  447. SDLTest_AssertCheck(
  448. state == stateAgain,
  449. "State %i returned when only 'pct' requested",
  450. stateAgain);
  451. SDLTest_AssertCheck(
  452. pct == pctAgain,
  453. "Value %i matches when only 'pct' requested",
  454. pctAgain);
  455. stateAgain = SDL_GetPowerInfo(NULL, NULL);
  456. SDLTest_AssertCheck(
  457. state == stateAgain,
  458. "State %i returned when no value requested",
  459. stateAgain);
  460. return TEST_COMPLETED;
  461. }
  462. /* ================= Test References ================== */
  463. /* Platform test cases */
  464. static const SDLTest_TestCaseReference platformTest1 = {
  465. (SDLTest_TestCaseFp)platform_testTypes, "platform_testTypes", "Tests predefined types", TEST_ENABLED
  466. };
  467. static const SDLTest_TestCaseReference platformTest2 = {
  468. (SDLTest_TestCaseFp)platform_testEndianessAndSwap, "platform_testEndianessAndSwap", "Tests endianness and swap functions", TEST_ENABLED
  469. };
  470. static const SDLTest_TestCaseReference platformTest3 = {
  471. (SDLTest_TestCaseFp)platform_testGetFunctions, "platform_testGetFunctions", "Tests various SDL_GetXYZ functions", TEST_ENABLED
  472. };
  473. static const SDLTest_TestCaseReference platformTest4 = {
  474. (SDLTest_TestCaseFp)platform_testHasFunctions, "platform_testHasFunctions", "Tests various SDL_HasXYZ functions", TEST_ENABLED
  475. };
  476. static const SDLTest_TestCaseReference platformTest5 = {
  477. (SDLTest_TestCaseFp)platform_testGetVersion, "platform_testGetVersion", "Tests SDL_GetVersion function", TEST_ENABLED
  478. };
  479. static const SDLTest_TestCaseReference platformTest6 = {
  480. (SDLTest_TestCaseFp)platform_testSDLVersion, "platform_testSDLVersion", "Tests SDL_VERSION macro", TEST_ENABLED
  481. };
  482. static const SDLTest_TestCaseReference platformTest7 = {
  483. (SDLTest_TestCaseFp)platform_testDefaultInit, "platform_testDefaultInit", "Tests default SDL_Init", TEST_ENABLED
  484. };
  485. static const SDLTest_TestCaseReference platformTest8 = {
  486. (SDLTest_TestCaseFp)platform_testGetSetClearError, "platform_testGetSetClearError", "Tests SDL_Get/Set/ClearError", TEST_ENABLED
  487. };
  488. static const SDLTest_TestCaseReference platformTest9 = {
  489. (SDLTest_TestCaseFp)platform_testSetErrorEmptyInput, "platform_testSetErrorEmptyInput", "Tests SDL_SetError with empty input", TEST_ENABLED
  490. };
  491. static const SDLTest_TestCaseReference platformTest10 = {
  492. (SDLTest_TestCaseFp)platform_testSetErrorInvalidInput, "platform_testSetErrorInvalidInput", "Tests SDL_SetError with invalid input", TEST_ENABLED
  493. };
  494. static const SDLTest_TestCaseReference platformTest11 = {
  495. (SDLTest_TestCaseFp)platform_testGetPowerInfo, "platform_testGetPowerInfo", "Tests SDL_GetPowerInfo function", TEST_ENABLED
  496. };
  497. /* Sequence of Platform test cases */
  498. static const SDLTest_TestCaseReference *platformTests[] = {
  499. &platformTest1,
  500. &platformTest2,
  501. &platformTest3,
  502. &platformTest4,
  503. &platformTest5,
  504. &platformTest6,
  505. &platformTest7,
  506. &platformTest8,
  507. &platformTest9,
  508. &platformTest10,
  509. &platformTest11,
  510. NULL
  511. };
  512. /* Platform test suite (global) */
  513. SDLTest_TestSuiteReference platformTestSuite = {
  514. "Platform",
  515. NULL,
  516. platformTests,
  517. NULL
  518. };