sbotools2

Maintenance fork of the original sbotools version 2
Log | Files | Refs | README

commit 1a341a69e3051e5c77ffb9fc00836728e71773ba
parent 8bd4d77a427ad32afa52c40d24adf6b7a1cc4380
Author: Andreas Guldstrand <andreas.guldstrand@gmail.com>
Date:   Tue, 15 Dec 2015 10:37:57 +0100

Bitshift another system() call return value

Diffstat:
Mt/travis.t | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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');