Skip to content

Commit

Permalink
[test] ignore TEST_PROG_ARGS -O2 for opt1.t tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Reini Urban committed Mar 5, 2014
1 parent b22e4c6 commit 9117768
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/Parrot/Test.pm
Expand Up @@ -964,10 +964,17 @@ sub _generate_test_functions {
# mangle windows line endings
convert_line_endings($expected);

my $args = $ENV{TEST_PROG_ARGS} || '';
if ($func =~ /^pir_2_/) {
$opt = $code_basef =~ m!opt(.)! ? "-O$1" : "-O1";
$args =~ s/-O[012pc]//;
if ($code_basef =~ m!opt(.)!) {
$opt = "-O$1";
}
else {
$opt = "-O1";
}
}
my $args = $ENV{TEST_PROG_ARGS} || '';
$args .= " $opt -d1000 -o $out_f.tmp";
$args =~ s/--run-exec//;
$cmd = qq{$parrot $args "$code_f"};
Expand Down

0 comments on commit 9117768

Please sign in to comment.