gd-libgd / tests / gdtest / gdtest.h

Author Commit Message Date Builds
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ý
Fix warning: ISO C99 requires rest arguments to be used [enabled by default]
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
- apply same CS everywhere
fix -Wimplicit-function-declaration
- mv src/tests tests