summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Fix #847: enable back GD_BICUBIC* interpolation methodsCyprien Nicolas2023-01-254-1/+16
|
* Some fixes for MINGW (#828)مهدي شينون (Mehdi Chinoune)2022-04-151-0/+1
| | | | | | | | | | | | | | | | | * Enable webpng on MINGW * Detect GD version using cmake language * Use _aligned_malloc instead of posix_memalign on Windows * Include missing "errno.h" * Fix finding WEBP on MINGW * Fix finding XPM on MINGW * Use PkgConfig to find packages on MINGW * CI: Enable more options for MINGW
* partial #818, fix again that logic. I need to find something more generic ↵Pierre Joye2022-02-011-4/+4
| | | | and convenient to handle errors, assert and free used resources on fail assert
* Bug/818 (#821)Pierre Joye2022-02-013-12/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 * partial #818, fix assert logic and test exp_size for <=0 * partial #818, fix assert logic for color idx test * partial #818, new case for possible leak, improve logic * partial #818, fix assert logic for color idx test
* Bug/818 (#820)Pierre Joye2022-02-012-9/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 * partial #818, fix assert logic and test exp_size for <=0 * partial #818, fix assert logic for color idx test
* Fix tests based on coverity reports (#819)Pierre Joye2022-02-019-34/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* #797 possible leak on png error, returns from setjmp lost the row_poi… (#802)Pierre Joye2022-01-234-0/+39
| | | | | * #797 possible leak on png error, returns from setjmp lost the row_pointers ref somehow * skip that one using mingw until we have a reliable portable FP related tests suites (may never happpen)
* #788 fix bug in HEIF usage, stride is require (#801)Pierre Joye2022-01-223-0/+44
| | | fix bug #788 in HEIF usage, stride is require
* docs: Fix a few typosTim Gates2021-09-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | There are small typos in: - examples/copyrotated.c - src/gd.c - src/gd.h - src/gd_avif.c - src/gd_nnquant.c - src/gd_tga.c - src/gd_topal.c - src/wbmp.c - tests/avif/compare_avif_to_png.c Fixes: - Should read `requires` rather than `reqiures`. - Should read `of the` rather than `ofthe`. - Should read `memory` rather than `memmory`. - Should read `maximum` rather than `maxmum`. - Should read `intersection` rather than `intertersection`. - Should read `hypotenuse` rather than `hypothenus`. - Should read `flexibility` rather than `flexibilty`. - Should read `always` rather than `alwasy`. - Should read `also` rather than `alos`.
* Fix #764 prevent crash in test code when AVIF encode/decode fails, fix ↵bug/764Pierre Joye2021-09-142-32/+8
| | | | memory leaks
* Merge from 2.3Pierre Joye2021-09-111-3/+3
|
* merge conflictPierre Joye2021-09-101-1/+1
|\
| * Stricter typing in test caseChristoph M. Becker2021-09-051-1/+1
| | | | | | | | This avoids the compiler complaining about a pointer to int conversion.
* | fix warningPierre Joye2021-09-102-1/+3
|/
* Fix #320, should not convert the source to palettebug/320Pierre Joye2021-09-012-0/+25
|
* Merge pull request #747 from libgd/features/mingw-ciPierre Joye2021-09-014-84/+163
|\ | | | | | | | | | | | | | | | | | | Rewrite CI to use Github Actions and improve builds. Platform: - Ubuntu 20.04, gcc, x64 and ARM64 (graviton2) - Ubuntu 20.04, clang, x64 and ARM64 (graviton2) - Windows, x64, x86, arm64 VC - Windows, mingw, x64, x86, ucrt64 - MacOS, x64 xcode See docs/README_CI.md for additional details.
| * disable these two on Graviton2, specific during runs it seems. ↵Pierre Joye2021-08-302-2/+4
| | | | | | | | Building&Running the tests manually 100s never fail
| * typoPierre Joye2021-08-291-1/+1
| |
| * restore logicPierre Joye2021-08-291-3/+2
| |
| * let debug this on CIPierre Joye2021-08-281-0/+4
| |
| * too early returnPierre Joye2021-08-281-3/+1
| |
| * windows logicPierre Joye2021-08-281-1/+1
| |
| * don't attempt to create it, fall back to /tmp on linux/mingw likePierre Joye2021-08-281-7/+3
| |
| * fix linux variants mkdstempPierre Joye2021-08-281-3/+3
| |
| * fix windows buildPierre Joye2021-08-281-4/+3
| |
| * fix linux/macos buildPierre Joye2021-08-281-0/+4
| |
| * Skip those on Mingw 32bit, rounding issues only on these enviromnents, won't ↵Pierre Joye2021-08-282-1/+8
| | | | | | | | fix.
| * don't use gdTestAssert in these functions, we are not testing them. Proper ↵Pierre Joye2021-08-281-18/+78
| | | | | | | | null return and avoid random segv if environment is not setup correctly
| * for the tests, it seems mingw can fail too often to find/create the tmpidr, ↵Pierre Joye2021-08-281-7/+6
| | | | | | | | let default it to ./tmp and fail if it cannot be created/used
| * MINGW32 or MINGW64Pierre Joye2021-08-281-1/+1
| |
| * Mingw support, and refactor a bit gdTest on Windows, simplifiesPierre Joye2021-08-271-63/+74
| |
* | Merge pull request #736 from libgd/bug/415Pierre Joye2021-08-312-0/+28
|\ \ | |/ |/| Fix #415, Assuming TopOfs and LeftOfs zero, we can safely skip any (x…
| * fix #415, the same is needed in the other section, add testbug/415Pierre Joye2021-08-252-0/+28
| |
* | Merge pull request #737 from libgd/bug/405Pierre Joye2021-08-271-1/+7
|\ \ | | | | | | Fix #405, -1 aims to reset the transparent color; refactor a bit; add test to existing test for -1
| * | fix testPierre Joye2021-08-251-1/+1
| | |
| * | left overPierre Joye2021-08-251-2/+0
| | |
| * | Fix #405, -1 aims to reset the transparent color; refactor a bit; add test ↵Pierre Joye2021-08-251-1/+9
| |/ | | | | | | to existing test for -1
* | skip on Windows, no X11 to initializePierre Joye2021-08-271-1/+2
| |
* | return 0 on successbug/402Pierre Joye2021-08-261-3/+3
| |
* | Fix #402, negative determinant fails, only 0 or not finite should failPierre Joye2021-08-263-0/+36
| |
* | Merge pull request #636 from willson-chen/mv_gd_color_map_test_to_testsPierre Joye2021-08-266-0/+37
|\ \ | |/ |/| Move src/gd_color_map_test.c to tests
| * Move src/gd_color_map_test.c to testswillson-chen2020-05-066-0/+37
| | | | | | | | And improve it more like a test case.
* | #661, restore correct clamping, fixing alpha artifacts (these ones are the ↵Pierre Joye2021-08-243-0/+0
| | | | | | | | most visible)
* | let see which one failed herePierre Joye2021-08-201-7/+12
| |
* | not usedPierre Joye2021-08-171-1/+1
| |
* | fix leaks in tests and extend a bit the timeout for ASAN modePierre Joye2021-08-135-5/+7
| |
* | WebP: Fix memory leak in test and avoid possible memory leak if size is not ↵Pierre Joye2021-08-131-2/+7
| | | | | | | | correct (ie. passing 0 size will leak). Min size is the WebP sign (3x32bits)
* | Clean formatting.Adam Silverstein2021-05-051-43/+41
| |
* | Merge branch 'master' into webp-losslessAdam Silverstein2021-05-05309-723/+3858
|\ \ | | | | | | | | | | | | | | | | | | # Conflicts: # tests/webp/.gitignore # tests/webp/CMakeLists.txt # tests/webp/Makemodule.am
| * | fix #655 relax test when libraqm is usedRemi Collet2021-03-181-1/+1
| | |