aboutsummaryrefslogtreecommitdiff
path: root/t/01-unit.t
diff options
context:
space:
mode:
Diffstat (limited to 't/01-unit.t')
-rwxr-xr-xt/01-unit.t12
1 files changed, 6 insertions, 6 deletions
diff --git a/t/01-unit.t b/t/01-unit.t
index d94fd9b..73f905c 100755
--- a/t/01-unit.t
+++ b/t/01-unit.t
@@ -11,7 +11,7 @@ use Capture::Tiny qw/ capture_merged /;
use File::Temp 'tempdir';
use Cwd;
-plan tests => 61;
+plan tests => 62;
# 1-2: test script_error();
{
@@ -149,7 +149,7 @@ SKIP: {
local $config{SLACKWARE_VERSION} = '14.1';
my $res;
- my $out = capture_merged { $res = SBO::Lib::rsync_sbo_tree('/foo-bar'); };
+ my $out = capture_merged { $res = SBO::Lib::rsync_sbo_tree('/foo-bar', ''); };
ok (!$res, q"rsync_sbo_tree('/foo-bar') returned false");
like ($out, qr!rsync: (.*)change_dir "/foo-bar" failed!, q"rsync_sbo_tree('/foo-bar') gave correct output");
@@ -161,7 +161,7 @@ SKIP: {
system(qw! mkdir -p /usr/sbo/repo/.git !);
my $res;
- capture_merged { $res = SBO::Lib::git_sbo_tree(''); };
+ capture_merged { $res = SBO::Lib::git_sbo_tree('', ''); };
is ($res, 0, q!git_sbo_tree('') returned 0!);
system(qw! rm -r /usr/sbo/repo !) if -d '/usr/sbo/repo';
@@ -171,10 +171,10 @@ SKIP: {
close $fh;
undef $res;
- capture_merged { $res = SBO::Lib::git_sbo_tree(''); };
+ capture_merged { $res = SBO::Lib::git_sbo_tree('', ''); };
is ($res, 0, q!git_sbo_tree('') with .git/config returned 0 !);
undef $res;
- capture_merged { $res = SBO::Lib::git_sbo_tree('foo'); };
+ capture_merged { $res = SBO::Lib::git_sbo_tree('foo', ''); };
is ($res, 0, q!git_sbo_tree('foo') returned 0!);
system(qw! rm -r /usr/sbo/repo !) if -d '/usr/sbo/repo';
@@ -203,7 +203,7 @@ SKIP: {
my $cwd = getcwd();
undef $res;
- my $out = capture_merged { $res = SBO::Lib::git_sbo_tree(''); };
+ my $out = capture_merged { $res = SBO::Lib::git_sbo_tree('', ''); };
is ($out, '', 'git_sbo_tree() no output');
is ($res, 0, 'git_sbo_tree() returned 0');