diff options
author | Eric Wong <e@yhbt.net> | 2020-04-21 03:22:52 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-04-21 20:13:53 +0000 |
commit | 2289dc4ab72cb31475039e26cb10786e6bf573d2 (patch) | |
tree | 8e97a9d545d3753a6bcfef15b59ed88ea72eed98 /t | |
parent | 47f8836273133fb4a13e895feff7f7ee34ae7109 (diff) | |
download | public-inbox-2289dc4ab72cb31475039e26cb10786e6bf573d2.tar.gz |
We need to detect FS errors and bail out on the test if we can't open a file -nntpd was just writing to.
Diffstat (limited to 't')
-rw-r--r-- | t/nntpd.t | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -329,12 +329,12 @@ Date: Fri, 02 Oct 1993 00:00:00 +0000 $n = $s = undef; $td->join; - my $eout = eval { - local $/; + is($?, 0, 'no error in exited process'); + my $eout = do { open my $fh, '<', $err or die "open $err failed: $!"; + local $/; <$fh>; }; - is($?, 0, 'no error in exited process'); unlike($eout, qr/wide/i, 'no Wide character warnings'); } |