Skip to content

Commit

Permalink
Make this test pass on g++, add note about how fragile this test is.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.parrot.org/parrot/branches/rm_cflags@44648 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
  • Loading branch information
coke committed Mar 5, 2010
1 parent 12d18b3 commit 8d1c1af
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion t/steps/auto/warnings-01.t
Expand Up @@ -75,8 +75,12 @@ $conf->data->set( gccversion => 'defined' );
$conf->data->set( 'g++' => undef );
$conf->options->set( cage => 1 );
ok($step->runstep($conf), "runstep() returned true value");

# This test is fragile, as it depends on the current state of --cage,
# which changes over time, and on the compiler, which may not support
# this option.
like($conf->data->get( 'ccwarn' ),
qr/-std=c89/,
qr/-Wunreachable-code/,
"'cage' warning set as expected"
);

Expand Down

0 comments on commit 8d1c1af

Please sign in to comment.