11 /* Test case functions */
14 * @brief Call to SDL_GetWindowWMInfo
17 syswm_getWindowWMInfo(void *arg)
23 window = SDL_CreateWindow("", 0, 0, 0, 0, SDL_WINDOW_HIDDEN);
24 SDLTest_AssertPass("Call to SDL_CreateWindow()");
25 SDLTest_AssertCheck(window != NULL, "Check that value returned from SDL_CreateWindow is not NULL");
30 /* Initialize info structure with SDL version info */
31 SDL_VERSION(&info.version);
34 result = SDL_GetWindowWMInfo(window, &info);
35 SDLTest_AssertPass("Call to SDL_GetWindowWMInfo()");
36 SDLTest_Log((result == SDL_TRUE) ? "Got window information" : "Couldn't get window information");
38 SDL_DestroyWindow(window);
39 SDLTest_AssertPass("Call to SDL_DestroyWindow()");
41 return TEST_COMPLETED;
44 /* ================= Test References ================== */
46 /* SysWM test cases */
47 static const SDLTest_TestCaseReference syswmTest1 =
48 { (SDLTest_TestCaseFp)syswm_getWindowWMInfo, "syswm_getWindowWMInfo", "Call to SDL_GetWindowWMInfo", TEST_ENABLED };
50 /* Sequence of SysWM test cases */
51 static const SDLTest_TestCaseReference *syswmTests[] = {
55 /* SysWM test suite (global) */
56 SDLTest_TestSuiteReference syswmTestSuite = {