Skip to content

Commit

Permalink
Only run t/bigmem.t if $AUTOMATED_TESTING is false
Browse files Browse the repository at this point in the history
Since the bigmem.t test uses 5GiB piddles, we skip by default
for CPAN::Testers and other automated tests.  That prevents
fails for OOM conditions until a more elegant approach can
be implemented.  Perhaps making the tests run in a loop for
increasing sizes until a problem occurs.
  • Loading branch information
devel-chm committed Sep 20, 2015
1 parent 6f4e728 commit fd83457
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion t/bigmem.t
Expand Up @@ -6,7 +6,15 @@
# This is a start at tests to verify PDL operation with pdls having
# large numbers of elements (more than than 32bits binary)
#
use Test::More tests => 1;
use Test::More;

BEGIN {
if ($ENV{AUTOMATED_TESTING}) {
plan skip_all => 'bigmem tests skipped to avoid OOM fails';
} else {
plan tests => 1;
}
}

use PDL;
$PDL::BIGPDL = 1; # should this be the defaults for 64bit index support?
Expand Down

0 comments on commit fd83457

Please sign in to comment.