Changeset 1147 in ProjectBuilder for devel/pb-modules
- Timestamp:
- Jan 11, 2011, 1:13:43 PM (14 years ago)
- Location:
- devel/pb-modules/t
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb-modules/t/Base.t
r1109 r1147 8 8 eval 9 9 { 10 require Test::More; 11 Test::More->import(); 10 require Test::More; 11 Test::More->import(); 12 my ($tmv,$tmsv) = split(/\./,$Test::More::VERSION); 13 if ($tmsv lt 87) { 14 die "Test::More is not available in an appropriate version ($tmsv)"; 15 } 12 16 }; 13 17 14 # Test::More not found so no test will be performed here18 # Test::More appropriate version not found so no test will be performed here 15 19 if ($@) { 16 20 require Test; 17 21 plan(tests => 1); 18 print "# Faking tests as test::More is not available\n";22 print "# Faking tests as Test::More is not available in an appropriate version\n"; 19 23 ok(1,1); 20 exit 24 exit(0); 21 25 } 22 26 -
devel/pb-modules/t/Log.t
r1109 r1147 8 8 eval 9 9 { 10 require Test::More; 11 Test::More->import(); 10 require Test::More; 11 Test::More->import(); 12 my ($tmv,$tmsv) = split(/\./,$Test::More::VERSION); 13 if ($tmsv lt 87) { 14 die "Test::More is not available in an appropriate version ($tmsv)"; 15 } 12 16 }; 13 17 … … 16 20 require Test; 17 21 plan(tests => 1); 18 print "# Faking tests as test::More is not available \n";22 print "# Faking tests as test::More is not available in an appropriate version\n"; 19 23 ok(1,1); 20 24 exit (0);
Note:
See TracChangeset
for help on using the changeset viewer.