From: Eric Wong Date: Fri, 29 Aug 2025 20:38:53 +0000 (+0000) Subject: t/ipc: enable autoflush for warnings X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1fb0e0a9f95563e972c1726f986e58b64c2e5277;p=thirdparty%2Fpublic-inbox.git t/ipc: enable autoflush for warnings 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. --- diff --git a/t/ipc.t b/t/ipc.t index fa1b04051..0ebe0417f 100644 --- 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): $!";