commit 147d49a97747e25597968aa05573fe1dad2aa188
parent 71c12436d69b56dd47f1cd574a0712e4b760bf2f
Author: Andreas Guldstrand <andreas.guldstrand@gmail.com>
Date: Tue, 7 Jun 2016 00:00:22 +0200
22-race.t: make sure shelling out doesn't cause output
Diffstat:
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/t/22-race.t b/t/22-race.t
@@ -51,9 +51,11 @@ sub emulate_race {
# 3-4: emulate race in open_fh by get_slack_version
{
my $sv_file = '/etc/slackware-version';
- system('mkdir', '-p', '/etc');
- system('mv', $sv_file, "$sv_file.bak");
- system('touch', $sv_file);
+ capture_merged {
+ system('mkdir', '-p', '/etc');
+ system('mv', $sv_file, "$sv_file.bak");
+ system('touch', $sv_file);
+ };
my $exit;
emulate_race($sv_file, 'open_fh');