SDL
2.0
|
#include "SDL_config.h"
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include "SDL.h"
#include "SDL_test.h"
Go to the source code of this file.
Functions | |
static char * | SDLTest_TimestampToString (const time_t timestamp) |
void | SDLTest_Log (SDL_PRINTF_FORMAT_STRING const char *fmt,...) |
Prints given message with a timestamp in the TEST category and INFO priority. More... | |
void | SDLTest_LogError (SDL_PRINTF_FORMAT_STRING const char *fmt,...) |
Prints given message with a timestamp in the TEST category and the ERROR priority. More... | |
void SDLTest_Log | ( | SDL_PRINTF_FORMAT_STRING const char * | fmt, |
... | |||
) |
Prints given message with a timestamp in the TEST category and INFO priority.
fmt | Message to be logged |
Definition at line 85 of file SDL_test_log.c.
References SDL_LOG_CATEGORY_TEST, SDL_LOG_PRIORITY_INFO, SDL_LogMessage, SDL_memset, SDL_vsnprintf, SDLTEST_MAX_LOGMESSAGE_LENGTH, and SDLTest_TimestampToString().
Referenced by audio_buildAudioCVTNegative(), audio_convertAudio(), audio_enumerateAndNameAudioDevices(), audio_lockUnlockOpenAudioDevice(), audio_openCloseAndGetAudioStatus(), audio_openCloseAudioDeviceConnected(), audio_pauseUnpauseAudio(), pixels_allocFreeFormat(), pixels_getPixelFormatName(), rwops_testFileWriteReadEndian(), SDLTest_AssertCheck(), SDLTest_AssertPass(), SDLTest_LogAssertSummary(), SDLTest_RunSuites(), SDLTest_RunTest(), stdlib_getsetenv(), syswm_getWindowWMInfo(), video_getClosestDisplayModeCurrentResolution(), and video_getClosestDisplayModeRandomResolution().
void SDLTest_LogError | ( | SDL_PRINTF_FORMAT_STRING const char * | fmt, |
... | |||
) |
Prints given message with a timestamp in the TEST category and the ERROR priority.
fmt | Message to be logged |
Definition at line 103 of file SDL_test_log.c.
References SDL_LOG_CATEGORY_TEST, SDL_LOG_PRIORITY_ERROR, SDL_LogMessage, SDL_memset, SDL_vsnprintf, SDLTEST_MAX_LOGMESSAGE_LENGTH, and SDLTest_TimestampToString().
Referenced by _audioSetUp(), _loadTestFace(), _timerSetUp(), audio_buildAudioCVT(), audio_convertAudio(), SDLTest_AssertCheck(), SDLTest_BailOut(), SDLTest_CompareSurfaces(), SDLTest_GenerateExecKey(), SDLTest_GenerateRunSeed(), SDLTest_LogAssertSummary(), sdltest_randomAsciiString(), sdltest_randomAsciiStringOfSize(), sdltest_randomAsciiStringWithMaximumLength(), SDLTest_RunSuites(), SDLTest_RunTest(), and SDLTest_SetTestTimeout().
|
static |
Definition at line 68 of file SDL_test_log.c.
References SDL_memset.
Referenced by SDLTest_Log(), and SDLTest_LogError().