Changeset 2275 in ProjectBuilder for devel/pb-modules/t/Base.t


Ignore:
Timestamp:
Aug 30, 2017, 5:07:58 PM (7 years ago)
Author:
Bruno Cornec
Message:

Fix tests so that they really work when Test::More isn't found

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb-modules/t/Base.t

    r1153 r2275  
    66use ProjectBuilder::Base;
    77
     8my $res;
    89eval
    910{
    1011    require Test::More;
    1112    Test::More->import();
     13    $res = $@;
    1214    my ($tmv,$tmsv) = split(/\./,$Test::More::VERSION);
    1315    if ($tmsv lt 87) {
     
    1719
    1820# Test::More appropriate version not found so no test will be performed here
    19 if ($@) {
     21if ($res) {
    2022    require Test;
    2123    Test->import();
Note: See TracChangeset for help on using the changeset viewer.