Source

gd-libgd / tests / gdtest / gdtest.c

Author Commit Message Labels Comments Date
Chris Reuter
Improved testing code Assertions in gdtest.c do nothing on failure except print a message. This change also makes them keep a count of failures which can be retrieved with the function 'gdNumFailures()', making it easy to return an error status if an assertion condition fails. Also added gdMaxPixelDiff(), a function to return the largest difference between two corresponding pixels. Used to detect pixels that are simi…
Ondřej Surý
Remove extra file, line from rewritten _gdTestErrorMsg
Ondřej Surý
Fix warning: C++ style comments are not allowed in ISO C90 [enabled by default]
Takeshi Abe
silence -Wunused-variable
Ondřej Surý
gdErrorMethod declaration was wrong, we need to pass rest of the arguments in va_list
Ondřej Surý
Cleanup gdtest functions to actually report usefull information.
Ondřej Surý
Make tests less chatty; silence them using our shiny new gdSetErrorMethod
pierrejoye
- apply same CS everywhere
Takeshi Abe
search GD headers locally at first at least for gcc's cpp: http://gcc.gnu.org/onlinedocs/cpp/Search-Path.html
tabe
fix -Wreturn-type
tabe
fix -Wunused-variable
tabe
fix -Wunused-parameter
tabe
removed an unused variable
tabe
just fail if failed to open file
tabe
fixed possible segfaults when gdNewDynamicCtx() returns null
pajoye
- mv src/tests tests