summaryrefslogtreecommitdiffstats
path: root/test/run
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2005-09-23 18:06:20 +0000
committerJean Delvare <khali@linux-fr.org>2005-09-23 18:06:20 +0000
commite23caf74fc13586956595bb2546a59584ea4fe5f (patch)
treed1d0a2a24f83aea9c9db2a1ef8bef0e9725b8c07 /test/run
parent3f715ddbd69b01dd5df3ae2d5ecfa3e0a5f2f2c1 (diff)
downloadquilt-e23caf74fc13586956595bb2546a59584ea4fe5f.tar.gz
- test/run: Do not depend on Term::ReadKey.
Diffstat (limited to 'test/run')
-rwxr-xr-xtest/run3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/run b/test/run
index d0eac49..695a125 100755
--- a/test/run
+++ b/test/run
@@ -13,7 +13,6 @@ use strict;
use FileHandle;
use Getopt::Std;
use POSIX qw(isatty setuid);
-use Term::ReadKey;
use vars qw($opt_l $opt_v);
no warnings qw(taint);
@@ -33,7 +32,7 @@ my ($prog, $in, $out) = ([], [], []);
my $prog_line;
my ($tests, $failed) = (0,0);
my $lineno;
-my $width=((GetTerminalSize)[0] >> 1);
+my $width = ($ENV{COLUMNS} || 80) >> 1;
for (;;) {
my $line = <>; $lineno++;