diff options
author | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2015-12-15 10:37:57 +0100 |
---|---|---|
committer | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2015-12-15 10:37:57 +0100 |
commit | 1a341a69e3051e5c77ffb9fc00836728e71773ba (patch) | |
tree | e22fe3f2c17115c51e0a5181c1108a4109ad20a5 /t/travis.t | |
parent | 8bd4d77a427ad32afa52c40d24adf6b7a1cc4380 (diff) | |
download | sbotools2-1a341a69e3051e5c77ffb9fc00836728e71773ba.tar.xz |
Bitshift another system() call return value
Diffstat (limited to 't/travis.t')
-rwxr-xr-x | t/travis.t | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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'); |