mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-21 14:55:39 +00:00
SDL_test: pass data pointer to unit tests
This commit is contained in:
committed by
Anonymous Maarten
parent
741c04b339
commit
2f4b2df595
@@ -19,7 +19,7 @@
|
||||
|
||||
/* Fixture */
|
||||
|
||||
static void audioSetUp(void *arg)
|
||||
static void audioSetUp(void **arg)
|
||||
{
|
||||
/* Start SDL audio subsystem */
|
||||
SDL_bool ret = SDL_InitSubSystem(SDL_INIT_AUDIO);
|
||||
|
||||
@@ -40,7 +40,7 @@ Uint32 getRandomUint32() {
|
||||
/*
|
||||
* Resets PRNG state to initialize tests using PRNG
|
||||
*/
|
||||
void blitSetUp(void *arg) {
|
||||
void blitSetUp(void **arg) {
|
||||
rngState[0] = 1;
|
||||
rngState[1] = 2;
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ static const char IOStreamAlphabetString[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
||||
|
||||
/* Fixture */
|
||||
|
||||
static void IOStreamSetUp(void *arg)
|
||||
static void IOStreamSetUp(void **arg)
|
||||
{
|
||||
size_t fileLen;
|
||||
FILE *handle;
|
||||
|
||||
@@ -44,7 +44,7 @@ static SDL_bool hasDrawColor(void);
|
||||
/**
|
||||
* Create software renderer for tests
|
||||
*/
|
||||
static void InitCreateRenderer(void *arg)
|
||||
static void InitCreateRenderer(void **arg)
|
||||
{
|
||||
int width = 320, height = 240;
|
||||
const char *renderer_name = NULL;
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
/* Fixture */
|
||||
|
||||
static void subsystemsSetUp(void *arg)
|
||||
static void subsystemsSetUp(void **arg)
|
||||
{
|
||||
/* Reset each one of the SDL subsystems */
|
||||
/* CHECKME: can we use SDL_Quit here, or this will break the flow of tests? */
|
||||
|
||||
@@ -41,7 +41,7 @@ static SDL_Surface *testSurface = NULL;
|
||||
/* Fixture */
|
||||
|
||||
/* Create a 32-bit writable surface for blitting tests */
|
||||
static void surfaceSetUp(void *arg)
|
||||
static void surfaceSetUp(void **arg)
|
||||
{
|
||||
int result;
|
||||
SDL_BlendMode blendMode = SDL_BLENDMODE_NONE;
|
||||
|
||||
@@ -20,7 +20,7 @@ static int g_timerCallbackCalled = 0;
|
||||
|
||||
/* Fixture */
|
||||
|
||||
static void timerSetUp(void *arg)
|
||||
static void timerSetUp(void **arg)
|
||||
{
|
||||
/* Start SDL timer subsystem */
|
||||
SDL_bool ret = SDL_InitSubSystem(SDL_INIT_TIMER);
|
||||
|
||||
Reference in New Issue
Block a user