]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
t/ipc: enable autoflush for warnings
authorEric Wong <e@80x24.org>
Fri, 29 Aug 2025 20:38:53 +0000 (20:38 +0000)
committerEric Wong <e@80x24.org>
Mon, 1 Sep 2025 18:35:46 +0000 (18:35 +0000)
I have no idea what I was thinking when I disabled autoflush in
this test, but it should make the test more reliable when
checking warnings.

t/ipc.t

diff --git a/t/ipc.t b/t/ipc.t
index fa1b040514f35d676c0f846d71d7b45dbad431bd..0ebe0417f3b1c094c2763f79b5b12de58b5e903a 100644 (file)
--- a/t/ipc.t
+++ b/t/ipc.t
@@ -102,7 +102,7 @@ pipe(my $ra, my $wa);
 pipe(my $rb, my $wb);
 pipe(my $rc, my $wc);
 open my $warn, '+>', undef;
-$warn->autoflush(0);
+$warn->autoflush(1);
 local $SIG{__WARN__} = sub { print $warn "PID:$$ ", @_ };
 my $big = try_cat('COPYING') || BAIL_OUT "try_cat(COPYING): $!";