[cairo-commit] cairo-perl/t Cairo.t, 1.15, 1.16 CairoPattern.t, 1.8, 1.9

Torsten Schoenfeld commit at pdx.freedesktop.org
Sat Oct 13 14:23:19 PDT 2007


Committed by: tsch

Update of /cvs/cairo/cairo-perl/t
In directory kemper:/tmp/cvs-serv21145/t

Modified Files:
	Cairo.t CairoPattern.t 
Log Message:
	* Makefile.PL: Use BEGIN { require 5.006; } instead of require
	v5.6.0.  Make missing Test::Number::Delta non-fatal; add it to the
	build_requires META.yml field.

	* t/Cairo.t
	* t/CairoPattern.t: Copy with Test::Number::Delta being
	unavailable.


Index: Cairo.t
===================================================================
RCS file: /cvs/cairo/cairo-perl/t/Cairo.t,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- Cairo.t	13 May 2007 10:58:07 -0000	1.15
+++ Cairo.t	13 Oct 2007 21:23:16 -0000	1.16
@@ -1,3 +1,4 @@
+#!/usr/bin/perl
 #
 # Copyright (c) 2004-2005 by the cairo perl team (see the file README)
 #
@@ -10,7 +11,12 @@
 use warnings;
 
 use Test::More tests => 68;
-use Test::Number::Delta;
+
+unless (eval 'use Test::Number::Delta; 1;') {
+	*delta_ok = sub {
+        	ok(1, 'Fake delta_ok');
+	}
+}
 
 use constant {
 	IMG_WIDTH => 256,

Index: CairoPattern.t
===================================================================
RCS file: /cvs/cairo/cairo-perl/t/CairoPattern.t,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- CairoPattern.t	13 May 2007 10:58:07 -0000	1.8
+++ CairoPattern.t	13 Oct 2007 21:23:16 -0000	1.9
@@ -1,3 +1,4 @@
+#!/usr/bin/perl
 #
 # Copyright (c) 2004-2005 by the cairo perl team (see the file README)
 #
@@ -10,7 +11,12 @@
 use warnings;
 
 use Test::More tests => 25;
-use Test::Number::Delta;
+
+unless (eval 'use Test::Number::Delta; 1;') {
+	*delta_ok = sub {
+		ok(1, 'Fake delta_ok');
+	}
+}
 
 use constant {
 	IMG_WIDTH => 256,



More information about the cairo-commit mailing list