[debsums] 06/07: Add check for bitwise ORed exit code (i.e. 1|2 = 3)

Axel Beckert abe at deuxchevaux.org
Thu Mar 26 01:30:27 UTC 2015


This is an automated email from the git hooks/post-receive script.

abe pushed a commit to branch master
in repository debsums.

commit e5ceaa069c9a36addb05a93ef1659da73c8bcde5
Author: Axel Beckert <abe at deuxchevaux.org>
Date:   Thu Mar 26 02:28:17 2015 +0100

    Add check for bitwise ORed exit code (i.e. 1|2 = 3)
---
 t/debsums.t | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/t/debsums.t b/t/debsums.t
index 7cf7778..851c099 100644
--- a/t/debsums.t
+++ b/t/debsums.t
@@ -59,6 +59,10 @@ EOT
     is(stdout, '', 'STDOUT is empty');
     expected_rc(1);
 
+    # Test running with an unknown and a potentially dirty package
+    run(@command, 'foobar', 'fakepkg');
+    expected_rc($exit_code | 1);
+
     foreach my $pkg ('', 'fakepkg') {
         @command = (@command, $pkg) if $pkg;
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/debsums.git



More information about the Pkg-perl-cvs-commits mailing list