[Rt-commit] rt branch, 4.0-trunk, updated. rt-4.0.5-135-g4389336

? sunnavy sunnavy at bestpractical.com
Tue May 22 11:38:37 EDT 2012


The branch, 4.0-trunk has been updated
       via  4389336ffd09f7cc94525567fc0400ad3ac2d570 (commit)
      from  080eb2a7c4b4c790a315da18411d5f2d2d3818ba (commit)

Summary of changes:
 t/mail/dashboard-chart-with-utf8.t |   12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

- Log -----------------------------------------------------------------
commit 4389336ffd09f7cc94525567fc0400ad3ac2d570
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Tue May 22 22:54:31 2012 +0800

    we need GD in dashboard chart test

diff --git a/t/mail/dashboard-chart-with-utf8.t b/t/mail/dashboard-chart-with-utf8.t
index 6d07b96..79f5f0e 100644
--- a/t/mail/dashboard-chart-with-utf8.t
+++ b/t/mail/dashboard-chart-with-utf8.t
@@ -1,7 +1,17 @@
 use strict;
 use warnings;
 
-use RT::Test tests => 15;
+BEGIN {
+    require RT::Test;
+
+    if (eval { require GD }) {
+        RT::Test->import(tests => 15);
+    }
+    else {
+        RT::Test->import(skip_all => 'GD required.');
+    }
+}
+
 use utf8;
 
 my $root = RT::Test->load_or_create_user( Name => 'root' );

-----------------------------------------------------------------------


More information about the Rt-commit mailing list