Commit Graph

5 Commits (167ea1f4f0003f3e9f7ca1e586189e99cf33d47f)

Author SHA1 Message Date
Pierre Joye 167ea1f4f0
Fix tests based on coverity reports (#819)
* Partial #818, unused arg

* Partial #818, init var

* partail #818, fix va_args usage

* partail #818, handle f* calls and avoid possible call to malloc with negative values

* partail #818, prevent double free

* partail #818, resource leak if test fail

* partail #818, null deref fix

* partail #818, avoid double free on fp failure

* Partial #818, fix error msg

* Partial #818, leak on error

* Partial #818, null deref

* Partial #818, avoid possible negative index on failure

* partial #818, does not free if we return if requested new size overflow

* partial #818, avoid double free, free where the alloc happened
2022-02-01 15:09:01 +07:00
Christoph M. Becker e210ff1149 Partially implement #220: tests: replace all printf error messages with gdTestErrorMsg 2016-07-15 14:59:21 +02:00
Mike Frysinger d6c50766ee tests: add helpers for accessing test data
A lot of tests want to read images/fonts that exist in tests/ for reading.
Rather than construct these paths by hand in every single test file, add a
few helper functions to quickly access them.

The helper functions are slightly slower (due to the repeated calls to the
strcat func), but they aren't terribly slow, especially relative to image
loading that these tests perform.  They also make writing/maintaining the
tests a lot easier which is more important here.
2016-06-03 20:31:02 -04:00
tabe dc22c26eaf fix to give small diffs of tolerance 2009-09-20 10:48:52 +09:00
tabe 9563181569 adapted Kalle's scatter filter. see FS#208 2009-09-20 10:47:28 +09:00