#include <stdio.h>
#include "SDL.h"
#include "SDL_syswm.h"
#include "SDL_test.h"
Go to the source code of this file.
◆ syswm_getWindowWMInfo()
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.
36 SDLTest_Log((result ==
SDL_TRUE) ?
"Got window information" :
"Couldn't get window information");
void SDLTest_AssertPass(SDL_PRINTF_FORMAT_STRING const char *assertDescription,...) SDL_PRINTF_VARARG_FUNC(1)
Explicitly pass without checking an assertion condition. Updates assertion counter.
#define SDL_VERSION(x)
Macro to determine SDL version program was compiled against.
int SDLTest_AssertCheck(int assertCondition, SDL_PRINTF_FORMAT_STRING const char *assertDescription,...) SDL_PRINTF_VARARG_FUNC(2)
Assert for test cases that logs but does not break execution flow on failures. Updates assertion coun...
#define SDL_GetWindowWMInfo
EGLSurface EGLNativeWindowType * window
The type used to identify a window.
void SDLTest_Log(SDL_PRINTF_FORMAT_STRING const char *fmt,...) SDL_PRINTF_VARARG_FUNC(1)
Prints given message with a timestamp in the TEST category and INFO priority.
#define SDL_DestroyWindow
◆ syswmTest1
Initial value:=
int(* SDLTest_TestCaseFp)(void *arg)
int syswm_getWindowWMInfo(void *arg)
Call to SDL_GetWindowWMInfo.
Definition at line 47 of file testautomation_syswm.c.
◆ syswmTests
Initial value:= {
}
static const SDLTest_TestCaseReference syswmTest1
Definition at line 51 of file testautomation_syswm.c.
◆ syswmTestSuite
Initial value:= {
"SysWM",
}
static const SDLTest_TestCaseReference * syswmTests[]
Definition at line 56 of file testautomation_syswm.c.