SDL  2.0
testautomation_syswm.c File Reference
#include <stdio.h>
#include "SDL.h"
#include "SDL_syswm.h"
#include "SDL_test.h"
+ Include dependency graph for testautomation_syswm.c:

Go to the source code of this file.

Functions

int syswm_getWindowWMInfo (void *arg)
 Call to SDL_GetWindowWMInfo.

Variables

static const
SDLTest_TestCaseReference 
syswmTest1
static const
SDLTest_TestCaseReference
syswmTests []
SDLTest_TestSuiteReference syswmTestSuite

Function Documentation

int syswm_getWindowWMInfo ( void arg)

Call to SDL_GetWindowWMInfo.

SysWM test suite

Definition at line 17 of file testautomation_syswm.c.

References NULL, SDL_CreateWindow, SDL_DestroyWindow, SDL_GetWindowWMInfo, SDL_TRUE, SDL_VERSION, SDL_WINDOW_HIDDEN, SDLTest_AssertCheck(), SDLTest_AssertPass(), SDLTest_Log(), TEST_ABORTED, TEST_COMPLETED, and SDL_SysWMinfo::version.

{
window = SDL_CreateWindow("", 0, 0, 0, 0, SDL_WINDOW_HIDDEN);
SDLTest_AssertPass("Call to SDL_CreateWindow()");
SDLTest_AssertCheck(window != NULL, "Check that value returned from SDL_CreateWindow is not NULL");
if (window == NULL) {
return TEST_ABORTED;
}
/* Initialize info structure with SDL version info */
/* Make call */
result = SDL_GetWindowWMInfo(window, &info);
SDLTest_AssertPass("Call to SDL_GetWindowWMInfo()");
SDLTest_Log((result == SDL_TRUE) ? "Got window information" : "Couldn't get window information");
SDLTest_AssertPass("Call to SDL_DestroyWindow()");
}

Variable Documentation

const SDLTest_TestCaseReference syswmTest1
static
Initial value:
{ (SDLTest_TestCaseFp)syswm_getWindowWMInfo, "syswm_getWindowWMInfo", "Call to SDL_GetWindowWMInfo", TEST_ENABLED }

Definition at line 47 of file testautomation_syswm.c.

const SDLTest_TestCaseReference* syswmTests[]
static
Initial value:

Definition at line 51 of file testautomation_syswm.c.

Initial value:
{
"SysWM",
}

Definition at line 56 of file testautomation_syswm.c.