Subject: bug#77800: grep-3.12: write-error-msg test failure on fedora rawhide (f43)

From: Jim Meyering <[email-masked]>
Date: Mon, 14 Apr 2025 12:32:36 -0700

On Mon, Apr 14, 2025 at 5:56 AM Jaroslav Škarvada via Bug reports for
GNU grep <[email-masked]> wrote:
> test log is attached

Hi Jaroslav,
Thanks for testing!

The test that's failing is ensuring that a disk-full write failure
elicits a diagnostic like this:
  grep: write error: No space left on device

On your system, it prints only this:
  grep: write error

Can you run the following and share the strace output file, "out"?
  yes 12345 | head -n 50000 > in
  strace -o out -- grep -q --help >/dev/full

We expect the first write to fail like this:
  write(1, "Usage: grep [OPTION]... PATTERNS"..., 4096) = -1 ENOSPC
(No space left on device)