From: Tomas Doran (t0m) Date: Tue, 9 Feb 2010 03:48:46 +0000 (+0000) Subject: Revert "Skip relevants tests when appropriate" X-Git-Tag: 0.27~6 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=646e95a0ee84424d8124e240ce36fd0275264cb3;p=gitmo%2FMooseX-Getopt.git Revert "Skip relevants tests when appropriate" This reverts commit 655594899dc90c925b5c3b1653b6a18f9bb5ace9. --- diff --git a/t/011_version_options.t b/t/011_version_options.t index 09bce03..2385ebb 100644 --- a/t/011_version_options.t +++ b/t/011_version_options.t @@ -20,20 +20,16 @@ for my $opt (qw(-v --version -V)) { for my $test (qw(version_with_options.pl version_with_simpleconfig.pl)) { my $script = catfile('t', $test); - SKIP: { - if ($test eq 'version_with_simpleconfig.pl' && !$HAVE_SIMPLECONFIG) { - skip('MooseX::SimpleConfig unavailable', 3); - } + next if $test eq 'version_with_simpleconfig.pl' && !$HAVE_SIMPLECONFIG; - my ($v, undef) = capture { system $^X, $script, '-v' }; - like($v, qr/^SUCCESS/, "Option -v is correct"); + my ($v, undef) = capture { system $^X, $script, '-v' }; + like($v, qr/^SUCCESS/, "Option -v is correct"); - my ($version, undef) = capture { system $^X, $script, '--version' }; - like($version, qr/^SUCCESS/, "Option --version is correct"); + my ($version, undef) = capture { system $^X, $script, '--version' }; + like($version, qr/^SUCCESS/, "Option --version is correct"); - my (undef, $V) = capture { system $^X, $script, '-V' }; - like($V, qr/^Unknown option/, "Option -V is unknown"); - } + my (undef, $V) = capture { system $^X, $script, '-V' }; + like($V, qr/^Unknown option/, "Option -V is unknown"); } done_testing();