[SCM] Debian package checker branch, master, updated. 2.5.0-rc2-122-g12888e8
The following commit has been merged in the master branch:
commit 3222ae316ea5fac03eb7e8308e4efaeb74ca8fab
Author: Niels Thykier <niels@thykier.net>
Date: Fri Apr 1 18:10:01 2011 +0200
Added a simple test for rundir and fixed interpolation
diff --git a/t/scripts/Lintian/Command/Simple/01-basic.t b/t/scripts/Lintian/Command/Simple/01-basic.t
index e78b3f2..12dc22b 100644
--- a/t/scripts/Lintian/Command/Simple/01-basic.t
+++ b/t/scripts/Lintian/Command/Simple/01-basic.t
@@ -2,9 +2,10 @@
use strict;
use warnings;
-use Test::More tests => 3;
+use Test::More tests => 4;
BEGIN { use_ok('Lintian::Command::Simple'); }
-is(Lintian::Command::Simple::run("true"), 0, 'Basic run (true)');
-is(Lintian::Command::Simple::run("false"), 1, 'Basic run (false)');
+is(Lintian::Command::Simple::run('true'), 0, 'Basic run (true)');
+is(Lintian::Command::Simple::run('false'), 1, 'Basic run (false)');
+is(Lintian::Command::Simple::rundir('/bin', './true'), 0, 'Basic run (cd /bin && ./true)');
--
Debian package checker
Reply to: