in reply to Inner workings of "make test"

Does which perl produce something different from /usr/bin/perl? I wouldn't think so, but it's the first thing that comes to mind initially.

If that doesn't help, can you post the setup portion of your test? (In most of my tests, this sets @INC, changes directories sometimes, and loads a couple of modules.)

Replies are listed 'Best First'.
Re^2: Inner workings of "make test"
by kesterkester (Hermit) on Dec 03, 2004 at 00:01 UTC
    My default perl is OK:

    % which perl /usr/bin/perl

    Here is the the setup and main routine of the test:

    use strict; use warnings; use Data::Dumper; use Test::More tests => 47; BEGIN { use_ok ( 'PDL' ); use_ok ( 'Chart::Scientific' ); }; main (); sub main { make_test_images (); my @ref_data = get_reference_data (); my @test_data = get_test_data (); die "uneven data: ", scalar @ref_data, " reference images, ", scalar @test_data, " test images" if scalar @ref_data != scalar @test_data; foreach ( 0 .. scalar @ref_data - 1 ) { is ( $ref_data[$_]{data}, $test_data[$_]{data}, "$ref_data[$_]{name} matches $test_data[$_]{name}" ); unlink $test_data[$_]{name} or warn "can't delete $test_data[$_]{name}"; } }