summaryrefslogtreecommitdiff
path: root/Build/source/libs/gd/libgd-2.1.0/tests/gdimageline/bug00111.c
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2013-06-26 12:09:00 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2013-06-26 12:09:00 +0000
commitdf90ed95f154046518bf7aae7f88715f25a312db (patch)
tree104818c62bab65b2988983110fdca9b35927c5e7 /Build/source/libs/gd/libgd-2.1.0/tests/gdimageline/bug00111.c
parent4e17498848c230539b58d870938a77805039046d (diff)
libgd 2.1.0
git-svn-id: svn://tug.org/texlive/trunk@30952 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/gd/libgd-2.1.0/tests/gdimageline/bug00111.c')
-rw-r--r--Build/source/libs/gd/libgd-2.1.0/tests/gdimageline/bug00111.c35
1 files changed, 35 insertions, 0 deletions
diff --git a/Build/source/libs/gd/libgd-2.1.0/tests/gdimageline/bug00111.c b/Build/source/libs/gd/libgd-2.1.0/tests/gdimageline/bug00111.c
new file mode 100644
index 00000000000..4277534874d
--- /dev/null
+++ b/Build/source/libs/gd/libgd-2.1.0/tests/gdimageline/bug00111.c
@@ -0,0 +1,35 @@
+/* $Id$ */
+
+#include "gd.h"
+#include <stdio.h>
+#include <stdlib.h>
+#include "gdtest.h"
+
+int main()
+{
+ gdImagePtr im;
+ int error = 0;
+ char path[2048];
+ const char *file_exp = "bug00111_exp.png";
+
+ im = gdImageCreateTrueColor(10, 10);
+ if (!im) {
+ printf("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);
+
+ sprintf(path, "%s/gdimageline/%s", GDTEST_TOP_DIR, file_exp);
+ if (!gdAssertImageEqualsToFile(path, im)) {
+ error = 1;
+ printf("Reference image and destination differ\n");
+ }
+
+ gdImageDestroy(im);
+
+ return error;
+}