IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 41045


Ignore:
Timestamp:
Nov 5, 2019, 8:05:47 AM (7 years ago)
Author:
eugene
Message:

fix inconsistency with perl 5.6.6 (gentoo) and 5.26.1 (ubuntu)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20191011/Nebulous/t/56_client_find_instances.t

    r41009 r41045  
    152152    );
    153153    $neb->create( "foo" );
     154    $neb->set_log_level ('DEBUG');
    154155
    155156    my $locations = $neb->find_instances( "foo", undef );
     
    185186    );
    186187    $neb->create( "foo", "~node01" );
     188    $neb->set_log_level ('DEBUG');
    187189
    188190    my $locations = $neb->find_instances( "neb://node01/foo", "~node02" );
     
    204206    );
    205207    $neb->create( "foo", "~node01" );
     208    $neb->set_log_level ('DEBUG');
    206209
    207210    my $locations = $neb->find_instances( "neb://node01/foo", "~nobody" );
    208 
    209     is( scalar @$locations, 0, "found 0" );
    210 #    like( @$locations[0], qr/file:/, "URIs match" );
    211 #    ok( -e _get_file_path( @$locations[0] ), "URI matches file" );
    212 
    213 #   the API used to return undef if we used a hard_volume but it was not there
    214 #   is($locations, undef, "no instances on specified volume" );
     211    is($locations, undef, "no instances on specified volume" );
     212#   is( scalar @$locations, 0, "found 0" );
     213#   under Ubuntu (Perl 5.26.1), @$locations evaluates to 0 if $locations is undef,
     214#   but not under Gentoo (Perl 5.6.6)
    215215}
    216216
     
    224224    );
    225225    $neb->create( "foo", "~node01" );
     226    $neb->set_log_level ('DEBUG');
    226227
    227228    my $locations = $neb->find_instances( "neb://node01/foo", "~node04" );
Note: See TracChangeset for help on using the changeset viewer.