bug-coreutils
[Top][All Lists]
Advanced

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

coreutils-6.0: numerous test failures on MacOS X


From: Bruno Haible
Subject: coreutils-6.0: numerous test failures on MacOS X
Date: Wed, 16 Aug 2006 14:33:43 +0200
User-agent: KMail/1.9.1

On MacOS X 10.3.9 (Darwin 7.9), numerous tests fails (see attached log).
Many of these failures are apparently due to the test expecting an
English error message, and the programs give a German error message.

chmod/no-x
cp/same-file
cp/fail-perm
cp/into-self
du/long-sloop
du/no-x
ls/stat-failed
misc/wc-files0
misc/csplit
misc/split-fail
mv/dir2dir
mv/perm-1
mv/part-fail
mv/dup-source
mv/into-self-2
mv/part-symlink
rm/dir-nonrecur
rm/dir-no-w
rm/cycle
rm/rm1
rm/rm2
rm/rm3
rm/rm5
rm/unread2
rm/r-1
rm/r-2
rm/interactive-always
rm/isatty
touch/not-owner
touch/fail-diag

My environment is: libintl from gettext-0.15, German as default language
in the user settings. I configured with a --prefix pointing to a directory
where libintl is installed; configure (gettext.m4) then detects the
presence of libintl.

The tests/lang-default file sets all locale related environment variables
to empty; this achieves the purpose to get the default behaviour. On MacOS X,
libintl's default behaviour is to use the user settings. If you want to get
consistent English message translations, you need to activate the C locale.
See POSIX 
http://www.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap07.html#tag_07_02
 :

  "POSIX Locale

   The POSIX locale can be specified by assigning to the appropriate
   environment variables the values "C" or "POSIX" .

   All implementations shall define a locale as the default locale, to
   be invoked when no environment variables are set, or set to the empty
   string. This default locale can be the POSIX locale or any other
   implementation-defined locale. Some implementations may provide facilities
   for local installation administrators to set the default locale ..."

The following fixes it:

2006-08-16  Bruno Haible  <address@hidden>

        * tests/lang-default: Set LC_ALL to "C", not empty.

*** tests/lang-default  31 Oct 2000 19:33:30 -0000      1.3
--- tests/lang-default  16 Aug 2006 12:29:54 -0000
***************
*** 2,8 ****
  # Set locale-related environment variables so we get consistent
  # message translations, time formats, sort orderings, etc.
  
! for i in \
!     LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_MESSAGES LC_NUMERIC LC_TIME; 
do
    eval "$i=; export $i"
  done
--- 2,8 ----
  # Set locale-related environment variables so we get consistent
  # message translations, time formats, sort orderings, etc.
  
! for i in LANG LANGUAGE LC_COLLATE LC_CTYPE LC_MESSAGES LC_NUMERIC LC_TIME; do
    eval "$i=; export $i"
  done
+ LC_ALL=C; export LC_ALL

------------------------------------------------------------------------------

After this is fixed, only dd/misc fails, and tail/tail-tests hangs.

$ cd tests/dd
$ VERBOSE=yes make check TESTS=misc
make  check-TESTS
+ dd --version
dd (coreutils) 6.0
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software.  You may redistribute copies of it under the terms of
the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
There is NO WARRANTY, to the extent permitted by law.

Geschrieben von Paul Rubin, David MacKenzie und Stuart Kemp.
+ test_failure=0
+ echo data
+ ln dd-in.20477 dd-in2.20477
+ ln -s dd-in.20477 dd-sym.20477
+ test 0 = 1
+ dd if=dd-in.20477 of=dd-out.20477
+ cmp dd-in.20477 dd-out.20477
+ rm dd-out.20477
+ dd -- if=dd-in.20477 of=dd-out.20477
+ cmp dd-in.20477 dd-out.20477
+ dd oflag=append if=dd-in.20477 of=dd-out.20477
+ cmp dd-in.20477 dd-out.20477
+ dd iflag=nofollow if=dd-in.20477 count=0
+ dd iflag=nofollow if=dd-sym.20477 count=0
+ fail=1
+ dd iflag=directory if=. count=0
++ ls -u --full-time dd-in.20477
+ old_ls=-rw-r--r-- 2 bruno admin 5 2006-08-16 03:40:49.000000000 +0200 
dd-in.20477
+ sleep 1
+ dd iflag=noatime if=dd-in.20477 of=dd-out.20477
+ dd oflag=nolinks if=dd-in.20477 of=dd-out.20477
+ rm -f dd-in.20477 dd-in2.20477 dd-sym.20477 dd-out.20477
+ exit 1
FAIL: misc
======================================
1 of 1 tests failed
Please report to address@hidden
======================================

It seems that the nofollow test doesn't work?

Bruno

Attachment: bug-coreutils3-log
Description: Text document


reply via email to

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