[Top][All Lists]

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

Re: coreutils-8.12.178-df9cd on HP-UX 11

From: Jim Meyering
Subject: Re: coreutils-8.12.178-df9cd on HP-UX 11
Date: Thu, 01 Sep 2011 15:05:18 +0200

Bruno Haible wrote:
>> On HP-UX 11.31:
>> 2 of 362 tests failed

Thanks again!

> FAIL: rm/deep-2

I'd like to debug this one (the problem may be in fts.c, which I've
changed very recently), but I don't have access to a single HP-UX system.
fts.c seems to be getting into the mode whereby it uses full-relative
names rather than safe-cwd functions.
I'm guessing that this is happening because HPUX is relatively unusual
not to have *at function support (neither direct nor emulatable).

> FAIL: misc/printf-surprise
> Find tests/test-suite.log attached.

  FAIL: misc/printf-surprise (exit: 1)
  + err_msg='printf: write error: Not enough space:'
  + case $err_msg in
  + diagnostic=unexpected
  ++ wc -c
  + n_out=0
  + case $n_out:$diagnostic:$exit in
  + fail=1

At least the above appears easy to work around.
The test expected precisely "printf: write error:",
yet got 'printf: write error: Not enough space:'.

>From 2974775b9020b8fb51e11af108e1275673590370 Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Thu, 1 Sep 2011 14:45:51 +0200
Subject: [PATCH] tests: printf-surprise: avoid false-positive failure

* tests/misc/printf-surprise: Also accept a strerror-style string
after the usual 'printf: write error:' diagnostic prefix.
Otherwise, this test would fail on HP-UX 11.
Reported by Bruno Haible.
 tests/misc/printf-surprise |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tests/misc/printf-surprise b/tests/misc/printf-surprise
index ca0f8e4..8c993fd 100755
--- a/tests/misc/printf-surprise
+++ b/tests/misc/printf-surprise
@@ -67,7 +67,7 @@ err_msg=$(cat err-msg|tr '\n' :)
 # containing '1> fifo:printf: write error:'.  Recognize that, too.

 case $err_msg in
-  "$prog: write error:") diagnostic=y ;;
+  "$prog: write error:"*) diagnostic=y ;;
   "1> fifo:$prog: write error:") diagnostic=y ;;
   '') diagnostic=n ;;
   *) diagnostic=unexpected ;;

reply via email to

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