coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

coreutils-8.31.90-cc4c.tar.xz on FreeBSD 12


From: Bruno Haible
Subject: coreutils-8.31.90-cc4c.tar.xz on FreeBSD 12
Date: Sat, 29 Feb 2020 22:34:58 +0100
User-agent: KMail/5.1.3 (Linux/4.4.0-174-generic; KDE/5.18.0; x86_64; ; )

On FreeBSD 12.0: 1 test fails.


FAIL: tests/misc/csplit-io-err
==============================

0
--- exp 2020-02-29 11:57:09.266337000 +0100
+++ out 2020-02-29 11:57:09.314904000 +0100
@@ -1 +1 @@
-csplit: write error for 'xx01': No space left on device
+csplit: : No space left on device
FAIL tests/misc/csplit-io-err.sh (exit status: 1)


I could debug this failure: A modified 'csplit' program (with k.c
from tests/misc/csplit-io-err), invoked as
  ./csplit - 1 4 < in
hits the overridden fwrite() with a stack trace like this:
  fwrite at k.c:10
  rpl_vfprintf at lib/vfprintf.c:52
  error_tail at lib/error.c:274
  error at lib/error.c:323
  save_line_to_file at src/csplit.c:1054
  process_line_count at src/csplit.c:753
  split_file at src/csplit.c:916
  main at src/csplit.c:1464

The attached patch fixes it, by limiting the effect of the overridden
fwrite() to streams != stderr.

Attachment: 0001-tests-Fix-test-failure-on-FreeBSD-12.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]