test/README
author Sam Lantinga <slouken@libsdl.org>
Mon, 21 Sep 2009 07:32:26 +0000
branchSDL-1.2
changeset 4209 62e86ab81e3c
parent 4036 eb60dd682e5e
permissions -rw-r--r--
Fixed bug #570

SDL_SemWaitTimeout in src/thread/generic/SDL_syssem.c line 179 (SVN trunk):

--sem->count;

should be

if (retval == 0) {
--sem->count;
}

Without this, sem->count will underflow on timeout effectively breaking the
semaphore. It appears that the implementation has been wrong since the initial
revision.
     1 
     2 These are test programs for the SDL library:
     3 
     4 	checkkeys	Watch the key events to check the keyboard
     5 	graywin		Display a gray gradient and center mouse on spacebar
     6 	loopwave	Audio test -- loop playing a WAV file
     7 	testalpha	Display an alpha faded icon -- paint with mouse
     8 	testbitmap	Test displaying 1-bit bitmaps
     9 	testblitspeed	Tests performance of SDL's blitters and converters.
    10 	testcdrom	Sample audio CD control program
    11 	testcursor	Tests custom mouse cursor
    12 	testdyngl	Tests dynamically loading OpenGL library
    13 	testerror	Tests multi-threaded error handling
    14 	testfile	Tests RWops layer
    15 	testgamma	Tests video device gamma ramp
    16 	testgl		A very simple example of using OpenGL with SDL
    17 	testhread	Hacked up test of multi-threading
    18 	testiconv	Tests international string conversion
    19 	testjoystick	List joysticks and watch joystick events
    20 	testkeys	List the available keyboard keys
    21 	testloadso	Tests the loadable library layer
    22 	testlock	Hacked up test of multi-threading and locking
    23 	testoverlay	Tests the software/hardware overlay functionality.
    24 	testoverlay2	Tests the overlay flickering/scaling during playback.
    25 	testpalette	Tests palette color cycling
    26 	testplatform	Tests types, endianness and cpu capabilities
    27 	testsem		Tests SDL's semaphore implementation
    28 	testsprite	Example of fast sprite movement on the screen
    29 	testtimer	Test the timer facilities
    30 	testver		Check the version and dynamic loading and endianness
    31 	testvidinfo	Show the pixel format of the display and perfom the benchmark
    32 	testwin		Display a BMP image at various depths
    33 	testwm		Test window manager -- title, icon, events
    34 	threadwin	Test multi-threaded event handling
    35 	torturethread	Simple test for thread creation/destruction