aboutsummaryrefslogtreecommitdiff
path: root/t/travis.t
diff options
context:
space:
mode:
authorAndreas Guldstrand <andreas.guldstrand@gmail.com>2015-12-15 10:37:57 +0100
committerAndreas Guldstrand <andreas.guldstrand@gmail.com>2015-12-15 10:37:57 +0100
commit1a341a69e3051e5c77ffb9fc00836728e71773ba (patch)
treee22fe3f2c17115c51e0a5181c1108a4109ad20a5 /t/travis.t
parent8bd4d77a427ad32afa52c40d24adf6b7a1cc4380 (diff)
downloadsbotools2-1a341a69e3051e5c77ffb9fc00836728e71773ba.tar.xz
Bitshift another system() call return value
Diffstat (limited to 't/travis.t')
-rwxr-xr-xt/travis.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/travis.t b/t/travis.t
index 0ae3bba..d740dee 100755
--- a/t/travis.t
+++ b/t/travis.t
@@ -77,7 +77,7 @@ LOCAL
qr/nonexistentslackbuild added to upgrade queue.*Upgrade queue: nonexistentslackbuild/s, 'sboupgrade upgrades old version');
# 17-18: Test missing dep
- my ($output, $ret) = capture_merged { system(qw/bash -c/, "$^X -I$lib $path/sboinstall nonexistentslackbuild2 <<END\ny\nEND\n") };
+ my ($output, $ret) = capture_merged { system(qw/bash -c/, "$^X -I$lib $path/sboinstall nonexistentslackbuild2 <<END\ny\nEND\n") and $? >> 8; };
is ($ret, 1, "sboinstall nonexistentslackbuild2 has correct exit code");
is ($output, "Unable to locate nonexistentslackbuild3 in the SlackBuilds.org tree.\n", 'sboinstall nonexistentslackbuild2 has correct output');