aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-08-29 00:19:33 +0200
committerAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-08-29 00:19:33 +0200
commit4cb2076c6208dc181b2a69b6d3bd49a4926530ba (patch)
tree2a9186e705a58ce714f4e5952e30edc3cefb8322 /t
parentd9948975a7bc93871b252aa9c5ac9f513e6f13d4 (diff)
downloadsbotools2-4cb2076c6208dc181b2a69b6d3bd49a4926530ba.tar.xz
sbofind: let get_file_contents use slurp() as well
Diffstat (limited to 't')
-rwxr-xr-xt/27-race-sbofind.t6
1 files changed, 3 insertions, 3 deletions
diff --git a/t/27-race-sbofind.t b/t/27-race-sbofind.t
index 5d0d1e4..c4384e8 100755
--- a/t/27-race-sbofind.t
+++ b/t/27-race-sbofind.t
@@ -71,7 +71,7 @@ my $tags_file = '/usr/sbo/repo/TAGS.txt';
my $out = capture_merged { $exit = exit_code { $ret = get_file_contents($file); }; };
is ($out, '', 'get_file_contents gave no output');
- is ($ret, "$file doesn't exist.\n", 'get_file_contents returned correctly');
+ is ($ret, "Unable to open $file.\n", 'get_file_contents returned correctly');
is ($exit, undef, 'get_file_contents didn\'t exit');
system 'touch', $file;
@@ -87,7 +87,7 @@ my $tags_file = '/usr/sbo/repo/TAGS.txt';
undef $ret;
$out = capture_merged { $exit = exit_code { $ret = get_file_contents($file); }; };
- is ($out, "Unable to open $file.\n", 'get_file_contents correct output');
- is ($ret, undef, 'get_file_contents returned undef');
+ is ($out, '', 'get_file_contents gave no output');
+ is ($ret, "Unable to open $file.\n", 'get_file_contents returned correctly');
is ($exit, undef, 'get_file_contents still didn\'t exit');
}