commit 41022d4881f08337216b2934e241a64b0a69b455
parent 2ddb5b7dde003ed0c5926e975fbf05a61bba7d63
Author: Kyle Milz <kyle@0x30.net>
Date: Sat, 31 Dec 2016 11:55:17 -0700
t: don't use on File::Slurp
Diffstat:
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/t/inst_switch.t b/t/inst_switch.t
@@ -3,7 +3,6 @@
#
use strict;
use warnings;
-use File::Slurp;
use Test::Cmd;
use Test::Differences;
use Test::More tests => 4;
@@ -65,7 +64,8 @@ EOF
$inst->run( args => '-c switch.c', chdir => $inst->curdir );
# This file should have been rewritten in place.
-my $inst_out = read_file($inst->workdir . '/switch.c');
+my $inst_out;
+$inst->read(\$inst_out, 'switch.c');
# Sanitize paths from stdout.
my $check_out = $inst->stdout;
diff --git a/t/inst_while.t b/t/inst_while.t
@@ -3,7 +3,6 @@
#
use strict;
use warnings;
-use File::Slurp;
use Test::Cmd;
use Test::Differences;
use Test::More tests => 4;
@@ -54,7 +53,8 @@ EOF
$inst->run( args => '-c while.c', chdir => $inst->curdir );
# This file should have been rewritten in place.
-my $inst_out = read_file($inst->workdir . '/while.c');
+my $inst_out;
+$inst->read(\$inst_out, 'while.c');
# Sanitize paths from stdout.
my $check_out = $inst->stdout;