aboutsummaryrefslogtreecommitdiff
path: root/t/Test/Execute.pm
diff options
context:
space:
mode:
Diffstat (limited to 't/Test/Execute.pm')
-rwxr-xr-xt/Test/Execute.pm16
1 files changed, 8 insertions, 8 deletions
diff --git a/t/Test/Execute.pm b/t/Test/Execute.pm
index 0d4798f..e319c2e 100755
--- a/t/Test/Execute.pm
+++ b/t/Test/Execute.pm
@@ -70,14 +70,7 @@ sub run {
subtest $name => sub {
plan tests => 2;
- # 1: Test exit value
- if (not defined $exit) {
- SKIP: { skip "Expected exit value undefined", 1 }
- } else {
- is ($return, $exit, "$name - exit value");
- }
-
- # 2: Test output
+ # 1: Test output
if (not defined $expected) {
SKIP: { skip "Expected output undefined", 1 }
} elsif (ref $expected eq 'Regexp') {
@@ -88,6 +81,13 @@ sub run {
} else {
is ($output, $expected, "$name - output");
}
+
+ # 2: Test exit value
+ if (not defined $exit) {
+ SKIP: { skip "Expected exit value undefined", 1 }
+ } else {
+ is ($return, $exit, "$name - exit value");
+ }
};
}