about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-01-20 14:04:43 +0900
committerEric Wong <e@80x24.org>2021-01-21 03:29:16 +0000
commit3dde6fa1268e2f86f10f26b7d427598e582aed2a (patch)
tree91594295d071ff279bcc4d18bc3fb3dc1e9d3334 /t
parentb0b13249a538fc6f9a4c109d15d51170e3dd8bdd (diff)
downloadpublic-inbox-3dde6fa1268e2f86f10f26b7d427598e582aed2a.tar.gz
We may attempt to write an mbox to any terminal, block, or
character device, not just regular files and FIFOs/pipes.
The only thing that is known to not work is a directory.

Sockets may be possible with some OSes (e.g. Plan 9) or
filesystems.  This fixes t/lei.t on FreeBSD 11.x
Diffstat (limited to 't')
-rw-r--r--t/lei.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/lei.t b/t/lei.t
index 64cb5f0e..d49dc01a 100644
--- a/t/lei.t
+++ b/t/lei.t
@@ -187,7 +187,7 @@ my $test_external = sub {
         is($? >> 8, 1, 'errored out with exit 1');
 
         ok(!$lei->(qw(q s:prefix -f mboxcl2 -o), $home), 'bad mbox');
-        like($err, qr!\Q$home\E exists and is not a regular file!,
+        like($err, qr!\Q$home\E exists and is not a writable file!,
                 'error shown');
         is($? >> 8, 1, 'errored out with exit 1');