summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
Diffstat (limited to 't')
-rwxr-xr-xt/lib/filehand.t12
1 files changed, 3 insertions, 9 deletions
diff --git a/t/lib/filehand.t b/t/lib/filehand.t
index fc43350212..0199a52ace 100755
--- a/t/lib/filehand.t
+++ b/t/lib/filehand.t
@@ -14,7 +14,7 @@ use FileHandle;
use strict subs;
$mystdout = new_from_fd FileHandle 1,"w";
-autoflush STDOUT;
+$| = 1;
autoflush $mystdout;
print "1..4\n";
@@ -24,12 +24,6 @@ $fh = new FileHandle "TEST", O_RDONLY and print "ok 2\n";
$buffer = <$fh>;
print $buffer eq "#!./perl\n" ? "ok 3\n" : "not ok 3\n";
-if ($^O eq 'VMS') {
- ungetc $fh 65;
- CORE::read($fh, $buf,1);
-}
-else {
- ungetc STDIN 65;
- CORE::read(STDIN, $buf,1);
-}
+ungetc $fh 65;
+CORE::read($fh, $buf,1);
print $buf eq 'A' ? "ok 4\n" : "not ok 4\n";