about summary refs log tree commit homepage
path: root/t/spawn.t
diff options
context:
space:
mode:
Diffstat (limited to 't/spawn.t')
-rw-r--r--t/spawn.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/spawn.t b/t/spawn.t
index aba1a26c..ebebfb57 100644
--- a/t/spawn.t
+++ b/t/spawn.t
@@ -71,13 +71,13 @@ use PublicInbox::Spawn qw(which spawn popen_rd);
         is($buf, "hello\n", 'tied gets works');
         is(sysread($fh, $buf, 6), 0, 'sysread got EOF');
         $? = 1;
-        close $fh;
+        ok(close($fh), 'close succeeds');
         is($?, 0, '$? set properly');
 }
 
 {
         my $fh = popen_rd([qw(false)]);
-        close $fh;
+        ok(!close($fh), 'close fails on false');
         isnt($?, 0, '$? set properly: '.$?);
 }