aboutsummaryrefslogtreecommitdiff
path: root/tests/server/admin-t.in
diff options
context:
space:
mode:
authorRuss Allbery <rra@stanford.edu>2008-04-24 02:41:12 +0000
committerRuss Allbery <rra@stanford.edu>2008-04-24 02:41:12 +0000
commit3ebbd3e716bfd4ac2b645a9701c51bb7c3afba0d (patch)
tree8b2a44248bbbd2206b8407fcd23828c93e32ea0e /tests/server/admin-t.in
parent92ff7f21ad0b167f8d742a9d7b5f93704a57619c (diff)
Perl 5.8 is required to run the test suite, but IO::String is not.
Diffstat (limited to 'tests/server/admin-t.in')
-rw-r--r--tests/server/admin-t.in9
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/server/admin-t.in b/tests/server/admin-t.in
index 177ef70..be40880 100644
--- a/tests/server/admin-t.in
+++ b/tests/server/admin-t.in
@@ -9,7 +9,6 @@
# See LICENSE for licensing terms.
use strict;
-use IO::String;
use Test::More tests => 54;
# Create a dummy class for Wallet::Admin that prints what method was called
@@ -84,10 +83,10 @@ eval { do '@abs_top_srcdir@/server/wallet-admin' };
# Wallet::Admin class.
sub run_admin {
my (@args) = @_;
- my $result;
- my $output = IO::String->new (\$result);
- $output->autoflush (1);
- select $output;
+ my $result = '';
+ open (OUTPUT, '>', \$result) or die "cannot create output string: $!\n";
+ select OUTPUT;
+ local $| = 1;
eval { command (@args) };
my $error = $@;
select STDOUT;