summaryrefslogtreecommitdiff
path: root/Build/source/libs/gd/libgd-src/tests/bmp/bug00450.c
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/libs/gd/libgd-src/tests/bmp/bug00450.c')
-rw-r--r--Build/source/libs/gd/libgd-src/tests/bmp/bug00450.c40
1 files changed, 0 insertions, 40 deletions
diff --git a/Build/source/libs/gd/libgd-src/tests/bmp/bug00450.c b/Build/source/libs/gd/libgd-src/tests/bmp/bug00450.c
deleted file mode 100644
index e048845654f..00000000000
--- a/Build/source/libs/gd/libgd-src/tests/bmp/bug00450.c
+++ /dev/null
@@ -1,40 +0,0 @@
-#include <stdio.h>
-
-#include "gd.h"
-#include "gdtest.h"
-
-int main(void) {
- char *path = gdTestFilePath("bmp/bug00450.bmp");
- gdImagePtr im = gdImageCreateFromFile(path);
- gdTestAssert(im != NULL);
-
- if (im) {
- char const ref[] =
- "# "
- "## "
- "### "
- "#### "
- "##### "
- "###### "
- "####### "
- "######## "
- "######### "
- "##########"
- ;
- int x, y;
-
- for (y = 0; y < 10; ++y) {
- for (x = 0; x < 10; ++x) {
- int const expected_pixel = ref[x + y * 10] == '#';
- int const actual_pixel = gdImageGetPixel(im, x, y);
- gdTestAssert(expected_pixel == actual_pixel);
- }
- }
-
- gdImageDestroy(im);
- }
-
- free(path);
-
- return gdNumFailures();
-}