From c15857413c9769426caa75c2f4ed383b7afbf782 Mon Sep 17 00:00:00 2001 From: Raphael Geissert Date: Thu, 11 Mar 2010 05:49:50 +0000 Subject: [PATCH] Properly skip tests that require the bundled gd lib when the external is used --- ext/gd/tests/bug42434.phpt | 1 + ext/gd/tests/imageantialias_error1.phpt | 1 + ext/gd/tests/imageantialias_error2.phpt | 1 + ext/gd/tests/imagelayereffect_basic.phpt | 2 +- ext/gd/tests/imagelayereffect_error1.phpt | 2 +- ext/gd/tests/imagelayereffect_error3.phpt | 2 +- 6 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ext/gd/tests/bug42434.phpt b/ext/gd/tests/bug42434.phpt index cede1ac17f..bc0790ede4 100644 --- a/ext/gd/tests/bug42434.phpt +++ b/ext/gd/tests/bug42434.phpt @@ -5,6 +5,7 @@ Bug #42434 (ImageLine w/ antialias = 1px shorter) if (!extension_loaded('gd')) { die('skip gd extension not available'); } +if (!GD_BUNDLED) die("skip requires bundled GD library\n"); ?> --FILE-- --SKIPIF-- --FILE-- --SKIPIF-- --FILE-- --SKIPIF-- --FILE-- --SKIPIF-- --FILE-- --SKIPIF-- --FILE--