summaryrefslogtreecommitdiff
path: root/Build/source/libs/gd/libgd-src/tests/gdimageline
diff options
context:
space:
mode:
authorDenis Bitouzé <dbitouze@wanadoo.fr>2021-02-25 18:23:07 +0000
committerDenis Bitouzé <dbitouze@wanadoo.fr>2021-02-25 18:23:07 +0000
commitc6101f91d071883b48b1b4b51e5eba0f36d9a78d (patch)
tree1bf7f5a881d7a4f5c5bf59d0b2821943dd822372 /Build/source/libs/gd/libgd-src/tests/gdimageline
parent07ee7222e389b0777456b427a55c22d0e6ffd267 (diff)
French translation for tlmgr updated
git-svn-id: svn://tug.org/texlive/trunk@57912 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/gd/libgd-src/tests/gdimageline')
-rw-r--r--Build/source/libs/gd/libgd-src/tests/gdimageline/CMakeLists.txt18
-rw-r--r--Build/source/libs/gd/libgd-src/tests/gdimageline/Makemodule.am31
-rw-r--r--Build/source/libs/gd/libgd-src/tests/gdimageline/bug00072.c30
-rw-r--r--Build/source/libs/gd/libgd-src/tests/gdimageline/bug00072_exp.pngbin133 -> 0 bytes
-rw-r--r--Build/source/libs/gd/libgd-src/tests/gdimageline/bug00077.c25
-rw-r--r--Build/source/libs/gd/libgd-src/tests/gdimageline/bug00077_exp.pngbin97 -> 0 bytes
-rw-r--r--Build/source/libs/gd/libgd-src/tests/gdimageline/bug00111.c30
-rw-r--r--Build/source/libs/gd/libgd-src/tests/gdimageline/bug00111_exp.pngbin79 -> 0 bytes
-rw-r--r--Build/source/libs/gd/libgd-src/tests/gdimageline/bug00315.c37
-rw-r--r--Build/source/libs/gd/libgd-src/tests/gdimageline/bug00315_exp.pngbin120 -> 0 bytes
-rw-r--r--Build/source/libs/gd/libgd-src/tests/gdimageline/gdImageAALine_thickness.c24
-rw-r--r--Build/source/libs/gd/libgd-src/tests/gdimageline/gdImageAALine_thickness_exp.pngbin534 -> 0 bytes
-rw-r--r--Build/source/libs/gd/libgd-src/tests/gdimageline/gdimageline_aa.c63
-rw-r--r--Build/source/libs/gd/libgd-src/tests/gdimageline/gdimageline_aa_a_0_exp.pngbin198 -> 0 bytes
-rw-r--r--Build/source/libs/gd/libgd-src/tests/gdimageline/gdimageline_aa_a_1_exp.pngbin202 -> 0 bytes
-rw-r--r--Build/source/libs/gd/libgd-src/tests/gdimageline/gdimageline_aa_b_0_exp.pngbin343 -> 0 bytes
-rw-r--r--Build/source/libs/gd/libgd-src/tests/gdimageline/gdimageline_aa_b_1_exp.pngbin197 -> 0 bytes
-rw-r--r--Build/source/libs/gd/libgd-src/tests/gdimageline/gdimageline_aa_c_0_exp.pngbin200 -> 0 bytes
-rw-r--r--Build/source/libs/gd/libgd-src/tests/gdimageline/gdimageline_aa_c_1_exp.pngbin194 -> 0 bytes
-rw-r--r--Build/source/libs/gd/libgd-src/tests/gdimageline/gdimageline_aa_d_0_exp.pngbin200 -> 0 bytes
-rw-r--r--Build/source/libs/gd/libgd-src/tests/gdimageline/gdimageline_aa_d_1_exp.pngbin216 -> 0 bytes
-rw-r--r--Build/source/libs/gd/libgd-src/tests/gdimageline/gdimageline_aa_outofrange.c20
-rw-r--r--Build/source/libs/gd/libgd-src/tests/gdimageline/gdimageline_bug5.c60
-rw-r--r--Build/source/libs/gd/libgd-src/tests/gdimageline/github_bug_167.c75
-rw-r--r--Build/source/libs/gd/libgd-src/tests/gdimageline/github_bug_167_exp.pngbin4697 -> 0 bytes
25 files changed, 0 insertions, 413 deletions
diff --git a/Build/source/libs/gd/libgd-src/tests/gdimageline/CMakeLists.txt b/Build/source/libs/gd/libgd-src/tests/gdimageline/CMakeLists.txt
deleted file mode 100644
index c345ed1426e..00000000000
--- a/Build/source/libs/gd/libgd-src/tests/gdimageline/CMakeLists.txt
+++ /dev/null
@@ -1,18 +0,0 @@
-LIST(APPEND TESTS_FILES
- gdimageline_aa_outofrange
-)
-
-IF(PNG_FOUND)
-LIST(APPEND TESTS_FILES
- bug00077
- bug00072
- bug00111
- bug00315
- gdimageline_aa
- gdimageline_bug5
- gdImageAALine_thickness
- github_bug_167
-)
-ENDIF(PNG_FOUND)
-
-ADD_GD_TESTS()
diff --git a/Build/source/libs/gd/libgd-src/tests/gdimageline/Makemodule.am b/Build/source/libs/gd/libgd-src/tests/gdimageline/Makemodule.am
deleted file mode 100644
index 9c104da2d5e..00000000000
--- a/Build/source/libs/gd/libgd-src/tests/gdimageline/Makemodule.am
+++ /dev/null
@@ -1,31 +0,0 @@
-libgd_test_programs += \
- gdimageline/gdimageline_aa_outofrange
-
-if HAVE_LIBPNG
-libgd_test_programs += \
- gdimageline/bug00072 \
- gdimageline/bug00077 \
- gdimageline/bug00111 \
- gdimageline/bug00315 \
- gdimageline/gdimageline_aa \
- gdimageline/gdimageline_bug5 \
- gdimageline/gdImageAALine_thickness \
- gdimageline/github_bug_167
-endif
-
-EXTRA_DIST += \
- gdimageline/CMakeLists.txt \
- gdimageline/bug00072_exp.png \
- gdimageline/bug00077_exp.png \
- gdimageline/bug00111_exp.png \
- gdimageline/bug00315_exp.png \
- gdimageline/gdimageline_aa_a_1_exp.png \
- gdimageline/gdimageline_aa_b_0_exp.png \
- gdimageline/gdimageline_aa_c_0_exp.png \
- gdimageline/gdimageline_aa_d_0_exp.png \
- gdimageline/gdimageline_aa_d_1_exp.png \
- gdimageline/gdimageline_aa_c_1_exp.png \
- gdimageline/gdimageline_aa_a_0_exp.png \
- gdimageline/gdimageline_aa_b_1_exp.png \
- gdimageline/gdImageAALine_thickness_exp.png \
- gdimageline/github_bug_167_exp.png
diff --git a/Build/source/libs/gd/libgd-src/tests/gdimageline/bug00072.c b/Build/source/libs/gd/libgd-src/tests/gdimageline/bug00072.c
deleted file mode 100644
index 72e9fca5020..00000000000
--- a/Build/source/libs/gd/libgd-src/tests/gdimageline/bug00072.c
+++ /dev/null
@@ -1,30 +0,0 @@
-#include "gd.h"
-#include "gdtest.h"
-
-int main()
-{
- gdImagePtr im;
- int error = 0;
-
- im = gdImageCreateTrueColor(11, 11);
- gdImageFilledRectangle(im, 0, 0, 10, 10, 0xFFFFFF);
- gdImageSetThickness(im, 3);
-
- gdImageLine(im, 5, 0, 5, 11, 0x000000);
- gdImageLine(im, 0, 5, 11, 5, 0x000000);
- gdImageLine(im, 0, 0, 11, 11, 0x000000);
-
- gdImageSetThickness(im, 1);
-
- gdImageLine(im, 5, 0, 5, 11, 0xFF0000);
- gdImageLine(im, 0, 5, 11, 5, 0xFF0000);
- gdImageLine(im, 0, 0, 11, 11, 0xFF0000);
-
- if (!gdAssertImageEqualsToFile("gdimageline/bug00072_exp.png", im)) {
- error = 1;
- }
-
- gdImageDestroy(im);
-
- return error;
-}
diff --git a/Build/source/libs/gd/libgd-src/tests/gdimageline/bug00072_exp.png b/Build/source/libs/gd/libgd-src/tests/gdimageline/bug00072_exp.png
deleted file mode 100644
index 6439e061f1d..00000000000
--- a/Build/source/libs/gd/libgd-src/tests/gdimageline/bug00072_exp.png
+++ /dev/null
Binary files differ
diff --git a/Build/source/libs/gd/libgd-src/tests/gdimageline/bug00077.c b/Build/source/libs/gd/libgd-src/tests/gdimageline/bug00077.c
deleted file mode 100644
index 7c52bbe1a01..00000000000
--- a/Build/source/libs/gd/libgd-src/tests/gdimageline/bug00077.c
+++ /dev/null
@@ -1,25 +0,0 @@
-#include "gd.h"
-#include "gdtest.h"
-
-int main()
-{
- gdImagePtr im;
- int error = 0;
-
- im = gdImageCreateTrueColor(11, 11);
- gdImageFilledRectangle(im, 0, 0, 10, 10, 0xFFFFFF);
- gdImageSetThickness(im, 1);
-
- gdImageLine(im, 0, 10, 0, 0, 0x0);
- gdImageLine(im, 5, 10, 5, 0, 0x0);
- gdImageLine(im, 10, 5, 0, 5, 0x0);
- gdImageLine(im, 10, 10, 0, 10, 0x0);
-
- if (!gdAssertImageEqualsToFile("gdimageline/bug00077_exp.png", im)) {
- error = 1;
- }
-
- gdImageDestroy(im);
-
- return error;
-}
diff --git a/Build/source/libs/gd/libgd-src/tests/gdimageline/bug00077_exp.png b/Build/source/libs/gd/libgd-src/tests/gdimageline/bug00077_exp.png
deleted file mode 100644
index bfa097a5c56..00000000000
--- a/Build/source/libs/gd/libgd-src/tests/gdimageline/bug00077_exp.png
+++ /dev/null
Binary files differ
diff --git a/Build/source/libs/gd/libgd-src/tests/gdimageline/bug00111.c b/Build/source/libs/gd/libgd-src/tests/gdimageline/bug00111.c
deleted file mode 100644
index 9b24113535a..00000000000
--- a/Build/source/libs/gd/libgd-src/tests/gdimageline/bug00111.c
+++ /dev/null
@@ -1,30 +0,0 @@
-#include "gd.h"
-#include <stdio.h>
-#include <stdlib.h>
-#include "gdtest.h"
-
-int main()
-{
- gdImagePtr im;
- int error = 0;
-
- im = gdImageCreateTrueColor(10, 10);
- if (!im) {
- gdTestErrorMsg("can't get truecolor image\n");
- return 1;
- }
-
- gdImageLine(im, 2, 2, 2, 2, 0xFFFFFF);
- gdImageLine(im, 5, 5, 5, 5, 0xFFFFFF);
-
- gdImageLine(im, 0, 0, 0, 0, 0xFFFFFF);
-
- if (!gdAssertImageEqualsToFile("gdimageline/bug00111_exp.png", im)) {
- error = 1;
- gdTestErrorMsg("Reference image and destination differ\n");
- }
-
- gdImageDestroy(im);
-
- return error;
-}
diff --git a/Build/source/libs/gd/libgd-src/tests/gdimageline/bug00111_exp.png b/Build/source/libs/gd/libgd-src/tests/gdimageline/bug00111_exp.png
deleted file mode 100644
index ecd44b25d66..00000000000
--- a/Build/source/libs/gd/libgd-src/tests/gdimageline/bug00111_exp.png
+++ /dev/null
Binary files differ
diff --git a/Build/source/libs/gd/libgd-src/tests/gdimageline/bug00315.c b/Build/source/libs/gd/libgd-src/tests/gdimageline/bug00315.c
deleted file mode 100644
index 719d155e0ba..00000000000
--- a/Build/source/libs/gd/libgd-src/tests/gdimageline/bug00315.c
+++ /dev/null
@@ -1,37 +0,0 @@
-/**
- * Regression test for <https://github.com/libgd/libgd/issues/315>
- *
- * We're testing that a single-pointed gdImageAALine() is drawn as a single
- * non-antialized pixel, according to (two-pointed) vertical and horizontal
- * lines.
- */
-
-#include "gd.h"
-#include "gdtest.h"
-
-int main()
-{
- gdImagePtr im;
- int white, black;
- char *path;
-
- im = gdImageCreateTrueColor(6, 6);
- white = gdImageColorAllocate(im, 255, 255, 255);
- black = gdImageColorAllocate(im, 0, 0, 0);
- gdImageFilledRectangle(im, 0,0, 5,5, white);
-
- gdImageLine(im, 4,4, 4,4, black);
- gdImageLine(im, 1,4, 2,4, black);
- gdImageLine(im, 4,1, 4,2, black);
-
- gdImageSetAntiAliased(im, black);
- gdImageLine(im, 1,1, 1,1, gdAntiAliased);
-
- path = gdTestFilePath2("gdimageline", "bug00315_exp.png");
- gdAssertImageEqualsToFile(path, im);
- gdFree(path);
-
- gdImageDestroy(im);
-
- return gdNumFailures();
-}
diff --git a/Build/source/libs/gd/libgd-src/tests/gdimageline/bug00315_exp.png b/Build/source/libs/gd/libgd-src/tests/gdimageline/bug00315_exp.png
deleted file mode 100644
index a6b2d850597..00000000000
--- a/Build/source/libs/gd/libgd-src/tests/gdimageline/bug00315_exp.png
+++ /dev/null
Binary files differ
diff --git a/Build/source/libs/gd/libgd-src/tests/gdimageline/gdImageAALine_thickness.c b/Build/source/libs/gd/libgd-src/tests/gdimageline/gdImageAALine_thickness.c
deleted file mode 100644
index 1d3a564ed0b..00000000000
--- a/Build/source/libs/gd/libgd-src/tests/gdimageline/gdImageAALine_thickness.c
+++ /dev/null
@@ -1,24 +0,0 @@
-#include <stdio.h>
-#include "gd.h"
-#include "gdtest.h"
-
-int main()
-{
- gdImagePtr im;
- int error = 0;
-
- im = gdImageCreateTrueColor(100, 100);
- gdImageFilledRectangle(im, 0, 0, 99, 99,
- gdImageColorExactAlpha(im, 255, 255, 255, 0));
-
- gdImageSetThickness(im, 5);
- gdImageSetAntiAliased(im, gdImageColorExactAlpha(im, 0, 0, 0, 0));
- gdImageLine(im, 0,0, 99, 99, gdAntiAliased);
-
- if (!gdAssertImageEqualsToFile("gdimageline/gdImageAALine_thickness_exp.png", im))
- error = 1;
-
- gdImageDestroy(im);
-
- return error;
-}
diff --git a/Build/source/libs/gd/libgd-src/tests/gdimageline/gdImageAALine_thickness_exp.png b/Build/source/libs/gd/libgd-src/tests/gdimageline/gdImageAALine_thickness_exp.png
deleted file mode 100644
index 26e02bc3661..00000000000
--- a/Build/source/libs/gd/libgd-src/tests/gdimageline/gdImageAALine_thickness_exp.png
+++ /dev/null
Binary files differ
diff --git a/Build/source/libs/gd/libgd-src/tests/gdimageline/gdimageline_aa.c b/Build/source/libs/gd/libgd-src/tests/gdimageline/gdimageline_aa.c
deleted file mode 100644
index f16bfb9ccbb..00000000000
--- a/Build/source/libs/gd/libgd-src/tests/gdimageline/gdimageline_aa.c
+++ /dev/null
@@ -1,63 +0,0 @@
-#include <stdio.h>
-#include <math.h>
-#include "gd.h"
-#include "gdtest.h"
-
-int gen_image(const char* filename, int idx, int reverse_x, int width, int height, int bgd)
-{
- double gradient = height / (width*2.0);
- int offset = idx*width;
- int x1,y1,x2,y2, error = 0;
-
- gdImagePtr im = gdImageCreateTrueColor(width,height);
- if (bgd==1) {
- gdImageFilledRectangle(im,0,0,width-1,height-1, gdTrueColorAlpha(255, 255, 255, 0));
- } else {
- gdImageFilledRectangle(im,0,0,width-1,height-1, gdTrueColorAlpha(255, 255, 0, 0));
- }
-
- gdImageSetAntiAliased(im, gdTrueColorAlpha(0,0,0,0));
-
- /*
- test for potential segfault (introduced with AA improvements, fixed
- with the same patch - but I didn't notice it until later).*/
- gdImageLine(im,-1,-1,-1,-1,gdAntiAliased);
-
- x1 = floor(reverse_x * -width + 0.5);
- y1 = (offset-width) * gradient + 0.5;
-
- x2 = floor(reverse_x * width*2 + 0.5);
- y2 = floor((offset+width*2) * gradient + 0.5);
-
- /* draw an AA line */
- gdImageLine(im, x1, y1, x2, y2, gdAntiAliased);
-
- gdImageLine(im, 0, im->sy - 1, im->sx, im->sy - 1, 0x40FF0000);
-
- if (!gdAssertImageEqualsToFile(filename, im)) {
- gdTestErrorMsg("gdAssertImageEqualsToFile failed: <%s>\n", filename);
- error = 1;
- }
- gdImageDestroy(im);
- return error;
-}
-
-int main()
-{
- int error = 0;
-
- error |= gen_image("gdimageline/gdimageline_aa_a_0_exp.png", 0, 1, 10, 100, 1);
-
- error |= gen_image("gdimageline/gdimageline_aa_a_1_exp.png", 1, 1, 10, 100, 2);
-
- error |= gen_image("gdimageline/gdimageline_aa_b_0_exp.png", 2, -1, 10, 100, 1);
- error |= gen_image("gdimageline/gdimageline_aa_b_1_exp.png", 1, -1, 10, 100, 2);
-
- error |= gen_image("gdimageline/gdimageline_aa_c_0_exp.png", 0, 1, 100, 10, 1);
- error |= gen_image("gdimageline/gdimageline_aa_c_1_exp.png", 1, 1, 100, 10, 2);
-
- error |= gen_image("gdimageline/gdimageline_aa_d_0_exp.png", 2, -1, 100, 10, 1);
- error |= gen_image("gdimageline/gdimageline_aa_d_1_exp.png", 1, -1, 100, 10, 2);
-
- return error;
-}
diff --git a/Build/source/libs/gd/libgd-src/tests/gdimageline/gdimageline_aa_a_0_exp.png b/Build/source/libs/gd/libgd-src/tests/gdimageline/gdimageline_aa_a_0_exp.png
deleted file mode 100644
index 83f893453ed..00000000000
--- a/Build/source/libs/gd/libgd-src/tests/gdimageline/gdimageline_aa_a_0_exp.png
+++ /dev/null
Binary files differ
diff --git a/Build/source/libs/gd/libgd-src/tests/gdimageline/gdimageline_aa_a_1_exp.png b/Build/source/libs/gd/libgd-src/tests/gdimageline/gdimageline_aa_a_1_exp.png
deleted file mode 100644
index c4edcfa36ec..00000000000
--- a/Build/source/libs/gd/libgd-src/tests/gdimageline/gdimageline_aa_a_1_exp.png
+++ /dev/null
Binary files differ
diff --git a/Build/source/libs/gd/libgd-src/tests/gdimageline/gdimageline_aa_b_0_exp.png b/Build/source/libs/gd/libgd-src/tests/gdimageline/gdimageline_aa_b_0_exp.png
deleted file mode 100644
index 130d6c36cc7..00000000000
--- a/Build/source/libs/gd/libgd-src/tests/gdimageline/gdimageline_aa_b_0_exp.png
+++ /dev/null
Binary files differ
diff --git a/Build/source/libs/gd/libgd-src/tests/gdimageline/gdimageline_aa_b_1_exp.png b/Build/source/libs/gd/libgd-src/tests/gdimageline/gdimageline_aa_b_1_exp.png
deleted file mode 100644
index 678800658d3..00000000000
--- a/Build/source/libs/gd/libgd-src/tests/gdimageline/gdimageline_aa_b_1_exp.png
+++ /dev/null
Binary files differ
diff --git a/Build/source/libs/gd/libgd-src/tests/gdimageline/gdimageline_aa_c_0_exp.png b/Build/source/libs/gd/libgd-src/tests/gdimageline/gdimageline_aa_c_0_exp.png
deleted file mode 100644
index 6d03ae6652e..00000000000
--- a/Build/source/libs/gd/libgd-src/tests/gdimageline/gdimageline_aa_c_0_exp.png
+++ /dev/null
Binary files differ
diff --git a/Build/source/libs/gd/libgd-src/tests/gdimageline/gdimageline_aa_c_1_exp.png b/Build/source/libs/gd/libgd-src/tests/gdimageline/gdimageline_aa_c_1_exp.png
deleted file mode 100644
index 6e1a38aa7e1..00000000000
--- a/Build/source/libs/gd/libgd-src/tests/gdimageline/gdimageline_aa_c_1_exp.png
+++ /dev/null
Binary files differ
diff --git a/Build/source/libs/gd/libgd-src/tests/gdimageline/gdimageline_aa_d_0_exp.png b/Build/source/libs/gd/libgd-src/tests/gdimageline/gdimageline_aa_d_0_exp.png
deleted file mode 100644
index c6f9e27e4fc..00000000000
--- a/Build/source/libs/gd/libgd-src/tests/gdimageline/gdimageline_aa_d_0_exp.png
+++ /dev/null
Binary files differ
diff --git a/Build/source/libs/gd/libgd-src/tests/gdimageline/gdimageline_aa_d_1_exp.png b/Build/source/libs/gd/libgd-src/tests/gdimageline/gdimageline_aa_d_1_exp.png
deleted file mode 100644
index 709c186c26a..00000000000
--- a/Build/source/libs/gd/libgd-src/tests/gdimageline/gdimageline_aa_d_1_exp.png
+++ /dev/null
Binary files differ
diff --git a/Build/source/libs/gd/libgd-src/tests/gdimageline/gdimageline_aa_outofrange.c b/Build/source/libs/gd/libgd-src/tests/gdimageline/gdimageline_aa_outofrange.c
deleted file mode 100644
index 35f5f5f6cfe..00000000000
--- a/Build/source/libs/gd/libgd-src/tests/gdimageline/gdimageline_aa_outofrange.c
+++ /dev/null
@@ -1,20 +0,0 @@
-#include <stdio.h>
-#include "gd.h"
-#include "gdtest.h"
-
-int main()
-{
- gdImagePtr im;
-
- im = gdImageCreateTrueColor(300, 300);
-
- gdImageSetAntiAliased(im, gdTrueColorAlpha(255, 255, 255, 0));
-
- gdImageLine(im, -1, -1, -1, -1, gdAntiAliased);
- gdImageLine(im, 299, 299, 0, 299, gdAntiAliased);
- gdImageLine(im, 1,1, 50, 50, gdAntiAliased);
-
- /* Test for segfaults, if we reach this point, the test worked */
- gdImageDestroy(im);
- return 0;
-}
diff --git a/Build/source/libs/gd/libgd-src/tests/gdimageline/gdimageline_bug5.c b/Build/source/libs/gd/libgd-src/tests/gdimageline/gdimageline_bug5.c
deleted file mode 100644
index d055b0c3123..00000000000
--- a/Build/source/libs/gd/libgd-src/tests/gdimageline/gdimageline_bug5.c
+++ /dev/null
@@ -1,60 +0,0 @@
-#include <stdio.h>
-#include "gd.h"
-#include "gdtest.h"
-
-int main() {
- /* Declare the image */
- gdImagePtr im, ref;
-
- /* Declare output files */
- /* FILE *pngout; */
- int black, white;
-
- /* If the data seg size is less than 195000,
- * gdImageCrateTrueColor will return NULL.
- * See https://github.com/libgd/libgd/issues/621 */
- im = gdImageCreateTrueColor(63318, 771);
- if (gdTestAssertMsg(im != NULL, "gdImageCreateTrueColor() returns NULL\n") == 0) {
- return gdNumFailures();
- }
-
- /* Allocate the color white (red, green and blue all maximum). */
- white = gdImageColorAllocate(im, 255, 255, 255);
- /* Allocate the color white (red, green and blue all maximum). */
- black = gdImageColorAllocate(im, 0, 0, 0);
-
- /* white background */
- gdImageFill(im, 1, 1, white);
-
- /* Make a reference copy. */
- ref = gdImageClone(im);
-
- gdImageSetAntiAliased(im, black);
-
- /* This line used to fail. */
- gdImageLine(im, 28562, 631, 34266, 750, gdAntiAliased);
-
- gdTestAssert(gdMaxPixelDiff(im, ref) > 0);
-
-#if 0
- {
- FILE *pngout;
-
- /* Open a file for writing. "wb" means "write binary",
- * important under MSDOS, harmless under Unix. */
- pngout = fopen("test.png", "wb");
-
- /* Output the image to the disk file in PNG format. */
- gdImagePng(im, pngout);
-
- /* Close the files. */
- fclose(pngout);
- }
-#endif
-
- /* Destroy the image in memory. */
- gdImageDestroy(im);
- gdImageDestroy(ref);
-
- return gdNumFailures();
-}
diff --git a/Build/source/libs/gd/libgd-src/tests/gdimageline/github_bug_167.c b/Build/source/libs/gd/libgd-src/tests/gdimageline/github_bug_167.c
deleted file mode 100644
index e0657a81613..00000000000
--- a/Build/source/libs/gd/libgd-src/tests/gdimageline/github_bug_167.c
+++ /dev/null
@@ -1,75 +0,0 @@
-/*
- Testing thick styled horizontal, vertical and diagonal lines.
-
- We're drawing four triangles with basically the same pattern style. Each
- triangle has exactly the same shape (right isosceles, with the hypotenuse
- being diagonal) and size. The triangles are arranged from lower left to
- upper right with increasing line thickness.
-
- To have the same pattern style, it has to be adapted according to the
- thickness (i.e. the pixels have to be repeated thickness times), which
- happens in setStyleAndThickness().
-
- See also <https://github.com/libgd/libgd/issues/167>.
-*/
-
-#include "gd.h"
-#include "gdtest.h"
-
-static void setStyleAndThickness(gdImagePtr im, int color, int thickness)
-{
- int style[192], i = 0;
-
- while (i < 16 * thickness) {
- style[i++] = color;
- }
- while (i < 20 * thickness) {
- style[i++] = gdTransparent;
- }
- while (i < 28 * thickness) {
- style[i++] = color;
- }
- while (i < 32 * thickness) {
- style[i++] = gdTransparent;
- }
- gdImageSetStyle(im, style, 32 * thickness);
- gdImageSetThickness(im, thickness);
-}
-
-int main()
-{
- gdImagePtr im;
- int error = 0, black;
-
- im = gdImageCreate(800, 800);
- gdImageColorAllocate(im, 255, 255, 255);
- black = gdImageColorAllocate(im, 0, 0, 0);
-
- setStyleAndThickness(im, black, 1);
- gdImageLine(im, 50, 250, 550, 250, gdStyled);
- gdImageLine(im, 550, 250, 550, 750, gdStyled);
- gdImageLine(im, 550, 750, 50, 250, gdStyled);
-
- setStyleAndThickness(im, black, 2);
- gdImageLine(im, 100, 200, 600, 200, gdStyled);
- gdImageLine(im, 600, 200, 600, 700, gdStyled);
- gdImageLine(im, 600, 700, 100, 200, gdStyled);
-
- setStyleAndThickness(im, black, 4);
- gdImageLine(im, 150, 150, 650, 150, gdStyled);
- gdImageLine(im, 650, 150, 650, 650, gdStyled);
- gdImageLine(im, 650, 650, 150, 150, gdStyled);
-
- setStyleAndThickness(im, black, 6);
- gdImageLine(im, 200, 100, 700, 100, gdStyled);
- gdImageLine(im, 700, 100, 700, 600, gdStyled);
- gdImageLine(im, 700, 600, 200, 100, gdStyled);
-
- if (!gdAssertImageEqualsToFile("gdimageline/github_bug_167_exp.png", im)) {
- error = 1;
- }
-
- gdImageDestroy(im);
-
- return error;
-}
diff --git a/Build/source/libs/gd/libgd-src/tests/gdimageline/github_bug_167_exp.png b/Build/source/libs/gd/libgd-src/tests/gdimageline/github_bug_167_exp.png
deleted file mode 100644
index 774270f63db..00000000000
--- a/Build/source/libs/gd/libgd-src/tests/gdimageline/github_bug_167_exp.png
+++ /dev/null
Binary files differ