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