Hello,

Testing the latest coreutils on Mac OS X, "tests/rm/unread3" fails.
The immediate cause is:
"rm: unable to record current working directory: Too many open files"

Attached is the relevant part from the log file.

The programs were compiled using:
===
$ ./configure CC=clang

## --------- ##
## Platform. ##
## --------- ##

hostname = minimacc.local
uname -m = i386
uname -r = 10.8.0
uname -s = Darwin
uname -v = Darwin Kernel Version 10.8.0: Tue Jun  7 16:33:36 PDT 2011; 
root:xnu-1504.15.3~1/RELEASE_I386

/usr/bin/uname -p = i386
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = Mach kernel version:
         Darwin Kernel Version 10.8.0: Tue Jun  7 16:33:36 PDT 2011; 
root:xnu-1504.15.3~1/RELEASE_I386
Kernel configured for up to 2 processors.
2 processors are physically available.
2 processors are logically available.
Processor type: i486 (Intel 80486)
Processors active: 0 1
Primary memory available: 2.00 gigabytes
Default processor set: 71 tasks, 267 threads, 2 processors
Load average: 0.19, Mach factor: 1.80
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown
[...]
configure:4946: clang --version >&5
Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin10.8.0
Thread model: posix
configure:4957: $? = 0
configure:4946: clang -v >&5
Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin10.8.0
Thread model: posix
===

-gordon

P.S.
To compile it on Mac, Paul Eggert's fix is required ( 
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=13495 ).
FAIL: tests/rm/unread3
======================

++ initial_cwd_=/Users/admin/Projects/coreutils-8.20.90-e27bfd
++ fail=0
+++ testdir_prefix_
+++ printf gt
++ pfx_=gt
+++ mktempd_ /Users/admin/Projects/coreutils-8.20.90-e27bfd gt-unread3.sh.XXXX
+++ case $# in
+++ destdir_=/Users/admin/Projects/coreutils-8.20.90-e27bfd
+++ template_=gt-unread3.sh.XXXX
+++ MAX_TRIES_=4
+++ case $destdir_ in
+++ case $template_ in
++++ unset TMPDIR
+++ d=/Users/admin/Projects/coreutils-8.20.90-e27bfd/gt-unread3.sh.8WPN
+++ case $d in
+++ test -d /Users/admin/Projects/coreutils-8.20.90-e27bfd/gt-unread3.sh.8WPN
++++ ls -dgo /Users/admin/Projects/coreutils-8.20.90-e27bfd/gt-unread3.sh.8WPN
++++ tr S -
+++ perms='drwx------ 2 68 Jan 21 14:27 /Users/admin/Projects/coreutils-8.20.90-e27bfd/gt-unread3.sh.8WPN'
+++ case $perms in
+++ test 0 = 0
+++ echo /Users/admin/Projects/coreutils-8.20.90-e27bfd/gt-unread3.sh.8WPN
+++ return
++ test_dir_=/Users/admin/Projects/coreutils-8.20.90-e27bfd/gt-unread3.sh.8WPN
++ cd /Users/admin/Projects/coreutils-8.20.90-e27bfd/gt-unread3.sh.8WPN
++ gl_init_sh_nl_='
'
++ IFS=' 	
'
++ for sig_ in 1 2 3 13 15
+++ expr 1 + 128
++ eval 'trap '\''Exit 129'\'' 1'
+++ trap 'Exit 129' 1
++ for sig_ in 1 2 3 13 15
+++ expr 2 + 128
++ eval 'trap '\''Exit 130'\'' 2'
+++ trap 'Exit 130' 2
++ for sig_ in 1 2 3 13 15
+++ expr 3 + 128
++ eval 'trap '\''Exit 131'\'' 3'
+++ trap 'Exit 131' 3
++ for sig_ in 1 2 3 13 15
+++ expr 13 + 128
++ eval 'trap '\''Exit 141'\'' 13'
+++ trap 'Exit 141' 13
++ for sig_ in 1 2 3 13 15
+++ expr 15 + 128
++ eval 'trap '\''Exit 143'\'' 15'
+++ trap 'Exit 143' 15
++ trap remove_tmp_ 0
+ path_prepend_ ./src
+ test 1 '!=' 0
+ path_dir_=./src
+ case $path_dir_ in
+ abs_path_dir_=/Users/admin/Projects/coreutils-8.20.90-e27bfd/./src
+ case $abs_path_dir_ in
+ PATH=/Users/admin/Projects/coreutils-8.20.90-e27bfd/./src:/Users/admin/Projects/coreutils-8.20.90-e27bfd/src:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
+ create_exe_shims_ /Users/admin/Projects/coreutils-8.20.90-e27bfd/./src
+ case $EXEEXT in
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ print_ver_ rm
+ test yes = yes
+ local i
+ for i in '$*'
+ env rm --version
rm (GNU coreutils) 8.20.90-e27bfd
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Paul Rubin, David MacKenzie, Richard M. Stallman,
and Jim Meyering.
+ skip_if_root_
+ uid_is_privileged_
++ id -u
+ my_uid=502
+ case $my_uid in
+ return 1
+ mkdir -p a/1 b c d/2 e/3
++ pwd
+ t=/Users/admin/Projects/coreutils-8.20.90-e27bfd/gt-unread3.sh.8WPN
+ cd c
+ chmod u=x,go= .
+ rm -r /Users/admin/Projects/coreutils-8.20.90-e27bfd/gt-unread3.sh.8WPN/a /Users/admin/Projects/coreutils-8.20.90-e27bfd/gt-unread3.sh.8WPN/b
rm: unable to record current working directory: Too many open files
+ fail=1
+ rm -r /Users/admin/Projects/coreutils-8.20.90-e27bfd/gt-unread3.sh.8WPN/d /Users/admin/Projects/coreutils-8.20.90-e27bfd/gt-unread3.sh.8WPN/e
rm: unable to record current working directory: Too many open files
+ fail=1
+ test -d /Users/admin/Projects/coreutils-8.20.90-e27bfd/gt-unread3.sh.8WPN/a
+ fail=1
+ test -d /Users/admin/Projects/coreutils-8.20.90-e27bfd/gt-unread3.sh.8WPN/b
+ fail=1
+ test -d /Users/admin/Projects/coreutils-8.20.90-e27bfd/gt-unread3.sh.8WPN/d
+ fail=1
+ test -d /Users/admin/Projects/coreutils-8.20.90-e27bfd/gt-unread3.sh.8WPN/e
+ fail=1
+ Exit 1
+ set +e
+ exit 1
+ exit 1
+ remove_tmp_
+ __st=1
+ cleanup_
+ :
+ cd /Users/admin/Projects/coreutils-8.20.90-e27bfd
+ chmod -R u+rwx /Users/admin/Projects/coreutils-8.20.90-e27bfd/gt-unread3.sh.8WPN
+ rm -rf /Users/admin/Projects/coreutils-8.20.90-e27bfd/gt-unread3.sh.8WPN
+ exit 1

Reply via email to