Ryan C. Gordon
f3d6be82af
Patched test apps to compile with C89 compilers (thanks, Axel!).
...
Fixes Bugzilla #1772 .
2013-03-29 21:21:48 -04:00
Sam Lantinga
282adb772b
Fixed bug 1759 - Updates to testjoystick.c
...
ny00
A minor patch is attached, with the following few changes to testjoystick.c:
- Unused constant definitions have been removed.
- Output for all analog axes is drawn, even when there is an odd number of axes. (I have a controller with 5 analog axes.)
- Buttons are now drawn on two rows, so there's room for more. In fact, it has been used for testing a proposed joystick patch for Android, where large button ID numbers have been involved (20 and up). For more details see http://bugzilla.libsdl.org/show_bug.cgi?id=1700 .
- A few adaptations have been done for the Android platform, assuming joystick support is ever applied to it. One of them is that the very first joystick (in the enumeration of all joysticks) is opened for testing, if there is any.
- It is now possible to quit from the calibration by pressing on a mouse button, tapping on a touchscreen or pressing/tapping on the "Back" button of an Android device. Technically, a press on a key identified by key code SDLK_AC_BACK results in that.
2013-03-19 22:25:02 -07:00
Sam Lantinga
63b082da83
Removed unused window size constants
2013-03-17 09:47:25 -07:00
Sam Lantinga
3afbe992d5
Removed Nintendo DS support since nobody has volunteered to maintain it for over a year.
2013-03-17 09:44:58 -07:00
Andreas Schiffler
42a673ce23
Fix bug 122 - SDL_RWops bug fixes: set RWops.type field, add input validation, add test coverage
2013-03-13 08:35:03 -07:00
Andreas Schiffler
6a2bff0cd1
Fix bug 1560 - SDL_RWFromConstMem write operation returns -1 but should return 0.
2013-03-12 09:10:37 -07:00
Andreas Schiffler
edbf26b139
Add parameter checking to SetWindowSize functions; add tests to video suite
2013-03-08 23:33:07 -08:00
Andreas Schiffler
5916b2bc1e
Fix Bug 1533 - SDL_Keycode value range allows segfaults with negative values; add test coverage to keyboard suite
2013-03-08 23:04:53 -08:00
Sam Lantinga
c6388c87c1
Changed the name of SDL_mutexP() SDL_mutexV()
2013-03-07 20:12:40 -08:00
Andreas Schiffler
f7b0b73b64
Fix behavior of SDL_GetWindowPosition for invalid input; add test cases to video suite
2013-03-03 17:22:51 -08:00
Sam Lantinga
bb0752e573
Updated touch API
...
* Normalized touch coordinates as floats in the 0...1 range
* Removed unused touchpad concepts from the API
* Added API functions to get active touch devices and current finger state
2013-03-03 01:01:33 -08:00
Andreas Schiffler
e23532eac2
Add additional input validation to SDL_GetWindowDisplayMode; add tests to video suite
2013-02-28 09:11:04 -08:00
Jørgen P. Tjernø
cf58b77360
sdl2
...
- change the windows scancode logic to use the scan code value in lparam rather than VK's to get a stable scancode value across different KB layouts
2013-02-25 16:52:42 -08:00
Andreas Schiffler
c5865bdd87
Add tests to video suite
2013-02-25 08:05:26 -08:00
Ryan C. Gordon
a5862a96a3
Changed the game controller enum types to match SDL naming conventions.
2013-02-25 00:56:21 -05:00
Ryan C. Gordon
db73a392c2
Minor cleanup.
2013-02-25 00:47:47 -05:00
Ryan C. Gordon
e4ef7cba60
Made testgamecontroller minimally more useful.
2013-02-24 22:57:25 -05:00
David Ludwig
776ebe3bda
WinRT: merged with latest, official, SDL 2.x code
2013-02-23 20:01:46 -05:00
Andreas Schiffler
6b7a2ee71b
Fix bug 1723: flipped log text in audio suite - thanks P. Wiesemann
2013-02-18 07:59:05 -08:00
Andreas Schiffler
e19bbcffd3
Add tests to Video suite
2013-02-16 23:09:10 -08:00
Andreas Schiffler
edbd20ec34
Add tests to SDLtest suite
2013-02-13 23:10:29 -08:00
Andreas Schiffler
ea312e87fa
Fix fuzzer random boundary functions; add tests for fuzzer
2013-02-12 22:23:42 -08:00
Jørgen P. Tjernø
ee501f4736
Fix another non-C90 variable declaration
...
This fixes a build issue with C variable declarations in the tests, for
VisualC.
2013-02-12 14:53:47 -08:00
Jørgen P. Tjernø
f85aeb98c7
Don't clobber refcounting in SDL_Init.
...
- Fixes bug 1712 by not overwriting SDL_SubsystemRefCount in SDL_Init.
- Removes the SDL_initialized variable, and makes SDL_SubsystemRefCount
the canonical source of truth for whether or not a subsystem has been
initialized.
- Refactors SDL_InitSubSystem and SDL_QuitSubSystem to use helper
functions to manage refcount.
- Adds automated tests for SDL_Init/Quit*.
- Adds SDL_bits.h which contains SDL_MostSignificantBitIndex.
2013-02-12 11:47:31 -08:00
Sam Lantinga
d36265107b
Backed out use of @autorelease keyword for now, since it's not supported by older Xcode versions.
2013-02-11 17:39:52 -08:00
Andreas Schiffler
da76be8927
Add SDL_test test suite; add fuzzer test cases; fix fuzzer bug; fix compiler warnings
2013-02-08 07:14:50 -08:00
stopiccot
929560081c
Replaced manual NSAutoreleasePool handing with @autorelease
2013-01-06 19:04:53 +03:00
Andreas Schiffler
ade15e571f
Add tests to audio suite; update harness filter logic
2013-01-31 08:45:30 -08:00
Andreas Schiffler
2e9dea31c5
Add mouse tests; update test suites
2013-01-24 07:58:59 -08:00
Andreas Schiffler
896befb67b
Add tests to mouse suite; fix VS compiler warnings in tests
2013-01-23 08:03:19 -08:00
Andreas Schiffler
b507ef3afa
Add additional input validation to SDL_BuildAudioCVT; add additional tests to automation (audio, rwops)
2013-01-21 09:16:27 -08:00
Andreas Schiffler
a971c6b291
Added timer test suite
2013-01-14 08:14:53 -08:00
Andreas Schiffler
02493c6188
Fix RWops test suite crash on Linux: remove unnecessary fclose
2013-01-14 07:20:55 -08:00
Andreas Schiffler
3bc9dbe16c
Add input validation to SDL_GetKeyFromScancode; fix compiler warning in testautomation driver on Linux; update keyboard test suite
2013-01-13 22:55:26 -08:00
Andreas Schiffler
b4a190fb6f
Update SDL_InvalidParamError to take param name; add additional fuzzer function; add new tests to keyboard test suite; improve surface test suite
2013-01-12 22:58:12 -08:00
Andreas Schiffler
a20096403e
Add new internal error message for invalid parameters; add validation of input rect in SDL_SetTextInputRect; add test cases for SDL_SetTextInputRect to keyboard suite
2013-01-11 20:36:39 -08:00
Andreas Schiffler
054a17097d
Added 3 more test cases to keyboard suite
2013-01-10 23:26:49 -08:00
Andreas Schiffler
71eabe59cb
Add a few keyboard tests; fix missing input validation in SDL_GetKeyFromName
2013-01-07 07:39:15 -08:00
Andreas Schiffler
5220df817b
Add new test suite (mouse) with a few new tests
2013-01-06 18:19:30 -08:00
Andreas Schiffler
687ba034f6
Add new test suites (events, keyboard, syswm, video) with a few new tests each
2013-01-06 15:17:59 -08:00
Sam Lantinga
441cba9b55
Fixed bug 1672 - Found: seg-fault with testgesture
...
automata 2012-12-23 22:05:21 PST
An incorrect guard resulted in segmentation faults with the
SDL/test/testgesture executable. The attached patch fixes this issue, and also
allows the program's window to properly handle resize events.
Apply the attached patch to .../SDL/test/testgesture.c
2012-12-31 14:08:43 -08:00
Sam Lantinga
1a92f18381
Added SDL_SetWindowMaximumSize() and SDL_GetWindowMaximumSize()
...
Also fixed Cocoa implementation so that it affects client area, not the whole window area.
2012-12-31 12:15:25 -08:00
Sam Lantinga
ce28a79602
Added SDL_GetDisplayName(), with implementation for Mac OS X
2012-12-31 11:07:46 -08:00
Sam Lantinga
5e519b21ed
Renamed SDL_GetWindowDisplay() to SDL_GetWindowDisplayIndex()
2012-12-31 10:29:17 -08:00
Sam Lantinga
ac0f89315c
Switched the test code over to use the common functions in the test library.
2012-12-31 10:26:38 -08:00
Sam Lantinga
13fe19497e
Added --fullscreen-desktop option to test the new SDL_WINDOW_FULLSCREEN_DESKTOP functionality
2012-12-31 10:13:25 -08:00
Andreas Schiffler
1b938d7de2
Fix incorrect use of SDL_FreeRW in rwops suite; add testcase for SDL_AllocRW/SDL_FreeRW to rwops test suite
2012-12-30 19:05:50 -08:00
Andreas Schiffler
485dd6420e
Add define to surface suite to quiet VS compiler warnings
2012-12-30 11:12:31 -08:00
Andreas Schiffler
1ab1039416
Add missing VS project dependencies to fix buildbot build; fix surface suite; minor update to rwops suite
2012-12-30 10:58:18 -08:00
Andreas Schiffler
40c14b85a8
Add testautomation to VS project; remove automated from VS project; minor update to platform suite
2012-12-30 09:58:03 -08:00