From cc44404e5bcad35a27c69e328fa51ef6688ebb17 Mon Sep 17 00:00:00 2001 From: Takeshi Abe Date: Thu, 21 Feb 2013 22:48:19 +0900 Subject: fix CMake warning: "Policy CMP0002 is not set: Logical target names must be globally unique." --HG-- rename : tests/gdimagefilledrectangle/bug00106.c => tests/gdimagefilledrectangle/bug00106_gdimagefilledrectangle.c rename : tests/gdimagerectangle/bug00106.c => tests/gdimagerectangle/bug00106_gdimagerectangle.c --- tests/gdimagefilledrectangle/CMakeLists.txt | 2 +- tests/gdimagefilledrectangle/bug00106.c | 27 --------------------- .../bug00106_gdimagefilledrectangle.c | 27 +++++++++++++++++++++ tests/gdimagerectangle/CMakeLists.txt | 2 +- tests/gdimagerectangle/bug00106.c | 28 ---------------------- tests/gdimagerectangle/bug00106_gdimagerectangle.c | 28 ++++++++++++++++++++++ 6 files changed, 57 insertions(+), 57 deletions(-) delete mode 100644 tests/gdimagefilledrectangle/bug00106.c create mode 100644 tests/gdimagefilledrectangle/bug00106_gdimagefilledrectangle.c delete mode 100644 tests/gdimagerectangle/bug00106.c create mode 100644 tests/gdimagerectangle/bug00106_gdimagerectangle.c (limited to 'tests') diff --git a/tests/gdimagefilledrectangle/CMakeLists.txt b/tests/gdimagefilledrectangle/CMakeLists.txt index aba1d2d..2bc27cb 100644 --- a/tests/gdimagefilledrectangle/CMakeLists.txt +++ b/tests/gdimagefilledrectangle/CMakeLists.txt @@ -1,7 +1,7 @@ SET(TESTS_FILES bug00004 bug00078 - bug00106 + bug00106_gdimagefilledrectangle ) FOREACH(test_name ${TESTS_FILES}) diff --git a/tests/gdimagefilledrectangle/bug00106.c b/tests/gdimagefilledrectangle/bug00106.c deleted file mode 100644 index 81b3d87..0000000 --- a/tests/gdimagefilledrectangle/bug00106.c +++ /dev/null @@ -1,27 +0,0 @@ -#include -#include "gdtest.h" - -int main() -{ - gdImagePtr im; - int c1,c2,c3,c4; - - im = gdImageCreateTrueColor(10,10); - if (!im) { - return 1; - } - - gdImageFilledRectangle(im, 1,1, 1,1, 0x50FFFFFF); - c1 = gdImageGetTrueColorPixel(im, 1, 1); - c2 = gdImageGetTrueColorPixel(im, 2, 1); - c3 = gdImageGetTrueColorPixel(im, 1, 2); - c4 = gdImageGetTrueColorPixel(im, 2, 2); - gdImageDestroy(im); - if (0x005e5e5e == c1 && 0x0 == c2 && - 0x0 == c3 && 0x0 == c4) { - return 0; - } else { - return 1; - } -} - diff --git a/tests/gdimagefilledrectangle/bug00106_gdimagefilledrectangle.c b/tests/gdimagefilledrectangle/bug00106_gdimagefilledrectangle.c new file mode 100644 index 0000000..81b3d87 --- /dev/null +++ b/tests/gdimagefilledrectangle/bug00106_gdimagefilledrectangle.c @@ -0,0 +1,27 @@ +#include +#include "gdtest.h" + +int main() +{ + gdImagePtr im; + int c1,c2,c3,c4; + + im = gdImageCreateTrueColor(10,10); + if (!im) { + return 1; + } + + gdImageFilledRectangle(im, 1,1, 1,1, 0x50FFFFFF); + c1 = gdImageGetTrueColorPixel(im, 1, 1); + c2 = gdImageGetTrueColorPixel(im, 2, 1); + c3 = gdImageGetTrueColorPixel(im, 1, 2); + c4 = gdImageGetTrueColorPixel(im, 2, 2); + gdImageDestroy(im); + if (0x005e5e5e == c1 && 0x0 == c2 && + 0x0 == c3 && 0x0 == c4) { + return 0; + } else { + return 1; + } +} + diff --git a/tests/gdimagerectangle/CMakeLists.txt b/tests/gdimagerectangle/CMakeLists.txt index 5f38ef6..108aa1d 100644 --- a/tests/gdimagerectangle/CMakeLists.txt +++ b/tests/gdimagerectangle/CMakeLists.txt @@ -1,6 +1,6 @@ SET(TESTS_FILES bug00003 - bug00106 + bug00106_gdimagerectangle ) FOREACH(test_name ${TESTS_FILES}) diff --git a/tests/gdimagerectangle/bug00106.c b/tests/gdimagerectangle/bug00106.c deleted file mode 100644 index 7d00d44..0000000 --- a/tests/gdimagerectangle/bug00106.c +++ /dev/null @@ -1,28 +0,0 @@ -#include "gd.h" -#include "gdtest.h" - -int main() -{ - gdImagePtr im; - int c1,c2,c3,c4; - - im = gdImageCreateTrueColor(10,10); - - if (!im) { - return 1; - } - - gdImageRectangle(im, 1,1, 1,1, 0x50FFFFFF); - c1 = gdImageGetTrueColorPixel(im, 1, 1); - c2 = gdImageGetTrueColorPixel(im, 2, 1); - c3 = gdImageGetTrueColorPixel(im, 1, 2); - c4 = gdImageGetTrueColorPixel(im, 2, 2); - gdImageDestroy(im); - - if (0x005e5e5e == c1 && 0x0 == c2 && - 0x0 == c3 && 0x0 == c4) { - return 0; - } else { - return 1; - } -} diff --git a/tests/gdimagerectangle/bug00106_gdimagerectangle.c b/tests/gdimagerectangle/bug00106_gdimagerectangle.c new file mode 100644 index 0000000..7d00d44 --- /dev/null +++ b/tests/gdimagerectangle/bug00106_gdimagerectangle.c @@ -0,0 +1,28 @@ +#include "gd.h" +#include "gdtest.h" + +int main() +{ + gdImagePtr im; + int c1,c2,c3,c4; + + im = gdImageCreateTrueColor(10,10); + + if (!im) { + return 1; + } + + gdImageRectangle(im, 1,1, 1,1, 0x50FFFFFF); + c1 = gdImageGetTrueColorPixel(im, 1, 1); + c2 = gdImageGetTrueColorPixel(im, 2, 1); + c3 = gdImageGetTrueColorPixel(im, 1, 2); + c4 = gdImageGetTrueColorPixel(im, 2, 2); + gdImageDestroy(im); + + if (0x005e5e5e == c1 && 0x0 == c2 && + 0x0 == c3 && 0x0 == c4) { + return 0; + } else { + return 1; + } +} -- cgit v1.2.1