summaryrefslogtreecommitdiff
path: root/t/cmd/while.t
diff options
context:
space:
mode:
Diffstat (limited to 't/cmd/while.t')
-rwxr-xr-xt/cmd/while.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/cmd/while.t b/t/cmd/while.t
index ecc15eda53..226db471ef 100755
--- a/t/cmd/while.t
+++ b/t/cmd/while.t
@@ -8,7 +8,7 @@ print tmp "tvi920\n";
print tmp "vt100\n";
print tmp "Amiga\n";
print tmp "paper\n";
-close tmp;
+close tmp or die "Could not close: $!";
# test "last" command