bug#8909: tests/ls/stat-free-color: fails on OpenSuSE 11.4

2011-06-21 Thread Bernhard Voelker

Hi,

`make check` of coreutils.git (latest commit  is 
18bd9ce40ae05d52543fc9c5a5fdf4f82d13068d) on an OpenSuSE 11.4

host fails (everything else was ok/skipped):


FAIL: ls/stat-free-color (exit: 1)
==

++ initial_cwd_=/home/berny/coreutils/tests
++ fail=0
+++ testdir_prefix_
+++ printf gt
++ pfx_=gt
+++ mktempd_ /home/berny/coreutils/tests gt-stat-free-color.
+++ case $# in
+++ destdir_=/home/berny/coreutils/tests
+++ template_=gt-stat-free-color.
+++ MAX_TRIES_=4
+++ case $destdir_ in
+++ case $template_ in
 unset TMPDIR
 mktemp -d -t -p /home/berny/coreutils/tests gt-stat-free-color.
+++ d=/home/berny/coreutils/tests/gt-stat-free-color.07ux
+++ case $d in
+++ test -d /home/berny/coreutils/tests/gt-stat-free-color.07ux
 ls -dgo /home/berny/coreutils/tests/gt-stat-free-color.07ux
 tr S -
+++ perms='drwx-- 2 4096 Jun 21 09:24 
/home/berny/coreutils/tests/gt-stat-free-color.07ux'

+++ case $perms in
+++ test 0 = 0
+++ echo /home/berny/coreutils/tests/gt-stat-free-color.07ux
+++ return
++ test_dir_=/home/berny/coreutils/tests/gt-stat-free-color.07ux
++ cd /home/berny/coreutils/tests/gt-stat-free-color.07ux
++ 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
++ cd /home/berny/coreutils/tests/../src
++ echo /home/berny/coreutils/src
+ abs_path_dir_=/home/berny/coreutils/src
+ case $abs_path_dir_ in
+ 
PATH=/home/berny/coreutils/src:/home/berny/coreutils/src:/usr/lib64/mpi/gcc/openmpi/bin:/home/berny/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/usr/lib64/jvm/jre/bin

+ create_exe_shims_ /home/berny/coreutils/src
+ case $EXEEXT in
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ print_ver_ ls
+ test yes = yes
+ local i
+ for i in '$*'
+ env ls --version
ls (GNU coreutils) 8.12.99-18bd
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
.

This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Richard M. Stallman and David MacKenzie.
+ require_strace_ stat
+ test 1 = 1
+ strace -V
+ strace -qe stat echo
+ require_dirent_d_type_
+ python
+ python /home/berny/coreutils/tests/d_type-check
+ for i in 1 2 3
+ ln -s nowhere dangle-1
+ for i in 1 2 3
+ ln -s nowhere dangle-2
+ for i in 1 2 3
+ ln -s nowhere dangle-3
+ cat
++ dircolors -b color-without-stat
+ eval 
'LS_COLORS='\''rs=0:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=00:su=00:sg=00:ca=00:tw=00:ow=00:st=00:ex=00:mh=00:'\'';' 
export LS_COLORS
++ 
LS_COLORS='rs=0:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=00:su=00:sg=00:ca=00:tw=00:ow=00:st=00:ex=00:mh=00:'

++ export LS_COLORS
+ strace -o log -e stat,lstat,stat64,lstat64 ls --color=always .
color-without-stat
dangle-1
dangle-2
dangle-3
log
++ wc -l
+ n_lines=5
+ case $n_lines in
+ fail=1
+ Exit 1
+ set +e
+ exit 1
+ exit 1
+ remove_tmp_
+ __st=1
+ cleanup_
+ :
+ cd /home/berny/coreutils/tests
+ chmod -R u+rwx /home/berny/coreutils/tests/gt-stat-free-color.07ux
+ rm -rf /home/berny/coreutils/tests/gt-stat-free-color.07ux
+ exit 1

How can I help?

Have a nice day,
Berny






bug#8909: tests/ls/stat-free-color: fails on OpenSuSE 11.4

2011-06-21 Thread Jim Meyering
Bernhard Voelker wrote:
...
> LS_COLORS='rs=0:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=00:su=00:sg=00:ca=00:tw=00:ow=00:st=00:ex=00:mh=00:'
> ++ export LS_COLORS
> + strace -o log -e stat,lstat,stat64,lstat64 ls --color=always .
> color-without-stat
> dangle-1
> dangle-2
> dangle-3
> log
> ++ wc -l
> + n_lines=5
> + case $n_lines in
> + fail=1
...
> How can I help?

Thanks for testing and the report.
If you apply the patch below and rerun the test like this,

make check -C tests TESTS=ls/stat-free-color VERBOSE=yes

then the offending strace output should help understand where
the extra stat calls are coming from.

For reference, I get this single call on Fedora 15:

stat(".", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0

diff --git a/tests/ls/stat-free-color b/tests/ls/stat-free-color
index b1c4744..a1f6418 100755
--- a/tests/ls/stat-free-color
+++ b/tests/ls/stat-free-color
@@ -55,7 +55,7 @@ n_lines=$(wc -l < log)
 # Expect one or two stat calls.
 case $n_lines in
   1|2) ;;
-  *) fail=1 ;;
+  *) fail=1; cat log;;
 esac

 Exit $fail

--

It might be useful to see the entire strace output, too.
To get that, remove the "-e stat,lstat,stat64,lstat64" argument
from the strace invocation, and rerun the test.





bug#8909: tests/ls/stat-free-color: fails on OpenSuSE 11.4

2011-06-21 Thread Jim Meyering
Bernhard Voelker wrote:
> On 06/21/2011 03:41 PM, Jim Meyering wrote:
>> Bernhard Voelker wrote:
>> ...
>>> LS_COLORS='rs=0:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=00:su=00:sg=00:ca=00:tw=00:ow=00:st=00:ex=00:mh=00:'
>>> ++ export LS_COLORS
>>> + strace -o log -e stat,lstat,stat64,lstat64 ls --color=always .
>>> color-without-stat
>>> dangle-1
>>> dangle-2
>>> dangle-3
>>> log
>>> ++ wc -l
>>> + n_lines=5
>>> + case $n_lines in
>>> + fail=1
>> ...
>>> How can I help?
>>
>> Thanks for testing and the report.
>> If you apply the patch below and rerun the test like this,
>>
>>  make check -C tests TESTS=ls/stat-free-color VERBOSE=yes
>>
>> then the offending strace output should help understand where
>> the extra stat calls are coming from.
>>
>> For reference, I get this single call on Fedora 15:
>>
>>  stat(".", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0
>>
>> diff --git a/tests/ls/stat-free-color b/tests/ls/stat-free-color
>> index b1c4744..a1f6418 100755
>> --- a/tests/ls/stat-free-color
>> +++ b/tests/ls/stat-free-color
>> @@ -55,7 +55,7 @@ n_lines=$(wc -l<  log)
>>   # Expect one or two stat calls.
>>   case $n_lines in
>> 1|2) ;;
>> -  *) fail=1 ;;
>> +  *) fail=1; cat log;;
>>   esac
>>
>>   Exit $fail
>>
>> --
>>
>> It might be useful to see the entire strace output, too.
>> To get that, remove the "-e stat,lstat,stat64,lstat64" argument
>> from the strace invocation, and rerun the test.
>
> The output of both runs is attached.
> stat("/usr/lib64/mpi/gcc/openmpi/lib64") and friends is the culprit.

Thanks.

> I can't remember to have anything un-OpenSuSE-11.4-like in my toolchain.
>
> To me it seems that the test should count the difference of the
> number of stat,lstat,stat64,lstat64 calls when run
>   a) as a dummy:  ls --color=always --help
> and
>   b) for ".": ls --color=always .

That would be more robust.
Do you feel like writing the patch?

...
> + cat log
> execve("/media/sdb5/berny/coreutils/src/ls", ["ls", "--color=always",
> "."], [/* 112 vars */]) = 0
> brk(0)  = 0x61e000
> mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
> 0) = 0x7fe74c75f000
> access("/etc/ld.so.preload", R_OK)  = -1 ENOENT (No such file or 
> directory)
> open("/usr/lib64/mpi/gcc/openmpi/lib64/tls/x86_64/librt.so.1",
> O_RDONLY) = -1 ENOENT (No such file or directory)
> stat("/usr/lib64/mpi/gcc/openmpi/lib64/tls/x86_64", 0x7fffaa485600) =
> -1 ENOENT (No such file or directory)
> open("/usr/lib64/mpi/gcc/openmpi/lib64/tls/librt.so.1", O_RDONLY) = -1
> ENOENT (No such file or directory)
> stat("/usr/lib64/mpi/gcc/openmpi/lib64/tls", 0x7fffaa485600) = -1
> ENOENT (No such file or directory)
> open("/usr/lib64/mpi/gcc/openmpi/lib64/x86_64/librt.so.1", O_RDONLY) =
> -1 ENOENT (No such file or directory)
> stat("/usr/lib64/mpi/gcc/openmpi/lib64/x86_64", 0x7fffaa485600) = -1
> ENOENT (No such file or directory)
> open("/usr/lib64/mpi/gcc/openmpi/lib64/librt.so.1", O_RDONLY) = -1
> ENOENT (No such file or directory)
> stat("/usr/lib64/mpi/gcc/openmpi/lib64", {st_mode=S_IFDIR|0755,
> st_size=4096, ...}) = 0
> open("/etc/ld.so.cache", O_RDONLY)  = 3
> fstat(3, {st_mode=S_IFREG|0644, st_size=115701, ...}) = 0
> mmap(NULL, 115701, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fe74c742000
> close(3)= 0
> open("/lib64/librt.so.1", O_RDONLY) = 3
> read(3,
> "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340\"\0\0\0\0\0\0"...,
> 832) = 832
> fstat(3, {st_mode=S_IFREG|0755, st_size=47329, ...}) = 0
> mmap(NULL, 2133008, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
> 0) = 0x7fe74c33a000
> fadvise64(3, 0, 2133008, POSIX_FADV_WILLNEED) = 0
> mprotect(0x7fe74c342000, 2093056, PROT_NONE) = 0
> mmap(0x7fe74c541000, 8192, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7000) = 0x7fe74c541000
> close(3)= 0
> open("/usr/lib64/mpi/gcc/openmpi/lib64/libc.so.6", O_RDONLY) = -1
> ENOENT (No such file or directory)
> open("/lib64/libc.so.6", O_RDONLY)  = 3
> read(3,
> "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\20\355\1\0\0\0\0\0"...,
> 832) = 832
> fstat(3, {st_mode=S_IFREG|0755, st_size=1725484, ...}) = 0
> mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
> 0) = 0x7fe74c741000
> mmap(NULL, 3591144, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
> 0) = 0x7fe74bfcd000





bug#8909: tests/ls/stat-free-color: fails on OpenSuSE 11.4

2011-06-21 Thread Bernhard Voelker

On 06/21/2011 03:41 PM, Jim Meyering wrote:

Bernhard Voelker wrote:
...

LS_COLORS='rs=0:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=00:su=00:sg=00:ca=00:tw=00:ow=00:st=00:ex=00:mh=00:'
++ export LS_COLORS
+ strace -o log -e stat,lstat,stat64,lstat64 ls --color=always .
color-without-stat
dangle-1
dangle-2
dangle-3
log
++ wc -l
+ n_lines=5
+ case $n_lines in
+ fail=1

...

How can I help?


Thanks for testing and the report.
If you apply the patch below and rerun the test like this,

 make check -C tests TESTS=ls/stat-free-color VERBOSE=yes

then the offending strace output should help understand where
the extra stat calls are coming from.

For reference, I get this single call on Fedora 15:

 stat(".", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0

diff --git a/tests/ls/stat-free-color b/tests/ls/stat-free-color
index b1c4744..a1f6418 100755
--- a/tests/ls/stat-free-color
+++ b/tests/ls/stat-free-color
@@ -55,7 +55,7 @@ n_lines=$(wc -l<  log)
  # Expect one or two stat calls.
  case $n_lines in
1|2) ;;
-  *) fail=1 ;;
+  *) fail=1; cat log;;
  esac

  Exit $fail

--

It might be useful to see the entire strace output, too.
To get that, remove the "-e stat,lstat,stat64,lstat64" argument
from the strace invocation, and rerun the test.


The output of both runs is attached.
stat("/usr/lib64/mpi/gcc/openmpi/lib64") and friends is the culprit.

I can't remember to have anything un-OpenSuSE-11.4-like in my toolchain.

To me it seems that the test should count the difference of the
number of stat,lstat,stat64,lstat64 calls when run
  a) as a dummy:  ls --color=always --help
and
  b) for ".": ls --color=always .


Have a nice day,
Berny
make: Entering directory `/media/sdb5/berny/coreutils/tests'
make  check-TESTS
make[1]: Entering directory `/media/sdb5/berny/coreutils/tests'
make[2]: Entering directory `/media/sdb5/berny/coreutils/tests'
FAIL: ls/stat-free-color
==
   GNU coreutils 8.12.99-18bd: tests/test-suite.log   
==

1 of 1 test failed.  

.. contents:: :depth: 2


FAIL: ls/stat-free-color (exit: 1)
==

++ initial_cwd_=/media/sdb5/berny/coreutils/tests
++ fail=0
+++ testdir_prefix_
+++ printf gt
++ pfx_=gt
+++ mktempd_ /media/sdb5/berny/coreutils/tests gt-stat-free-color.
+++ case $# in
+++ destdir_=/media/sdb5/berny/coreutils/tests
+++ template_=gt-stat-free-color.
+++ MAX_TRIES_=4
+++ case $destdir_ in
+++ case $template_ in
 unset TMPDIR
 mktemp -d -t -p /media/sdb5/berny/coreutils/tests gt-stat-free-color.
+++ d=/media/sdb5/berny/coreutils/tests/gt-stat-free-color.2L9D
+++ case $d in
+++ test -d /media/sdb5/berny/coreutils/tests/gt-stat-free-color.2L9D
 ls -dgo /media/sdb5/berny/coreutils/tests/gt-stat-free-color.2L9D
 tr S -
+++ perms='drwx-- 2 4096 Jun 21 15:51 
/media/sdb5/berny/coreutils/tests/gt-stat-free-color.2L9D'
+++ case $perms in
+++ test 0 = 0
+++ echo /media/sdb5/berny/coreutils/tests/gt-stat-free-color.2L9D
+++ return
++ test_dir_=/media/sdb5/berny/coreutils/tests/gt-stat-free-color.2L9D
++ cd /media/sdb5/berny/coreutils/tests/gt-stat-free-color.2L9D
++ 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
++ cd /media/sdb5/berny/coreutils/tests/../src
++ echo /media/sdb5/berny/coreutils/src
+ abs_path_dir_=/media/sdb5/berny/coreutils/src
+ case $abs_path_dir_ in
+ 
PATH=/media/sdb5/berny/coreutils/src:/home/berny/coreutils/src:/usr/lib64/mpi/gcc/openmpi/bin:/home/berny/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/usr/lib64/jvm/jre/bin
+ create_exe_shims_ /media/sdb5/berny/coreutils/src
+ case $EXEEXT in
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ print_ver_ ls
+ test yes = yes
+ local i
+ for i in '$*'
+ env ls --version
ls (GNU coreutils) 8.12.99-18bd
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later .
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Richard M. Stallman and David MacKenzie.
+ require_strace_ stat
+ test 1 = 1
+ strace -V
+ strace -qe stat echo
+ require_dirent_d_type_
+ python
+ python /home/berny/coreutils/tests/d_type-check
+ for i in 1 2 3
+ ln -s nowhere dang

bug#8909: tests/ls/stat-free-color: fails on OpenSuSE 11.4

2011-06-21 Thread Bernhard Voelker

On 06/21/2011 04:16 PM, Jim Meyering wrote:

Bernhard Voelker wrote:

On 06/21/2011 03:41 PM, Jim Meyering wrote:

It might be useful to see the entire strace output, too.
To get that, remove the "-e stat,lstat,stat64,lstat64" argument
from the strace invocation, and rerun the test.


The output of both runs is attached.
stat("/usr/lib64/mpi/gcc/openmpi/lib64") and friends is the culprit.


Thanks.


I can't remember to have anything un-OpenSuSE-11.4-like in my toolchain.

To me it seems that the test should count the difference of the
number of stat,lstat,stat64,lstat64 calls when run
   a) as a dummy:  ls --color=always --help
and
   b) for ".": ls --color=always .


That would be more robust.
Do you feel like writing the patch?


Attached try #1 and the log.

I'm not sure about x-platform calculation, but I guess
  n_lines=$(expr $n_lines - $n_lines_help)
is okay - actually I saw it somewhere else in tests/.

Have a nice day,
Berny
>From 3a6e0abab8eaa92922ce4cb1cfdfda278ccde8a6 Mon Sep 17 00:00:00 2001
From: Bernhard Voelker 
Date: Tue, 21 Jun 2011 16:26:50 +0200
Subject: [PATCH] tests: ls/stat-free-color: count only the number of stat calls compared to --help

* tests/ls/stat-free-color: The system may do additional stat calls upon loading
(seen on OpenSuSE-11.4). Count only the number of stat calls compared to --help.
---
 tests/ls/stat-free-color |6 ++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/tests/ls/stat-free-color b/tests/ls/stat-free-color
index b1c4744..03ef6e1 100755
--- a/tests/ls/stat-free-color
+++ b/tests/ls/stat-free-color
@@ -49,9 +49,15 @@ MULTIHARDLINK 00
 EOF
 eval $(dircolors -b color-without-stat)
 
+# The system may do additional *stat*()s upon loading.
+# Count the difference compared to a dummy "--help" call.
+strace -o log -e stat,lstat,stat64,lstat64 ls --color=always --help >/dev/null 2>&1 || fail=1
+n_lines_help=$(wc -l < log)
 strace -o log -e stat,lstat,stat64,lstat64 ls --color=always . || fail=1
 n_lines=$(wc -l < log)
 
+n_lines=$(expr $n_lines - $n_lines_help)
+
 # Expect one or two stat calls.
 case $n_lines in
   1|2) ;;
-- 
1.7.3.4

PASS: ls/stat-free-color (exit: 0)
==

++ initial_cwd_=/media/sdb5/berny/coreutils/tests
++ fail=0
+++ testdir_prefix_
+++ printf gt
++ pfx_=gt
+++ mktempd_ /media/sdb5/berny/coreutils/tests gt-stat-free-color.
+++ case $# in
+++ destdir_=/media/sdb5/berny/coreutils/tests
+++ template_=gt-stat-free-color.
+++ MAX_TRIES_=4
+++ case $destdir_ in
+++ case $template_ in
 unset TMPDIR
 mktemp -d -t -p /media/sdb5/berny/coreutils/tests gt-stat-free-color.
+++ d=/media/sdb5/berny/coreutils/tests/gt-stat-free-color.knck
+++ case $d in
+++ test -d /media/sdb5/berny/coreutils/tests/gt-stat-free-color.knck
 ls -dgo /media/sdb5/berny/coreutils/tests/gt-stat-free-color.knck
 tr S -
+++ perms='drwx-- 2 4096 Jun 21 16:25 /media/sdb5/berny/coreutils/tests/gt-stat-free-color.knck'
+++ case $perms in
+++ test 0 = 0
+++ echo /media/sdb5/berny/coreutils/tests/gt-stat-free-color.knck
+++ return
++ test_dir_=/media/sdb5/berny/coreutils/tests/gt-stat-free-color.knck
++ cd /media/sdb5/berny/coreutils/tests/gt-stat-free-color.knck
++ 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
++ cd /media/sdb5/berny/coreutils/tests/../src
++ echo /media/sdb5/berny/coreutils/src
+ abs_path_dir_=/media/sdb5/berny/coreutils/src
+ case $abs_path_dir_ in
+ PATH=/media/sdb5/berny/coreutils/src:/home/berny/coreutils/src:/usr/lib64/mpi/gcc/openmpi/bin:/home/berny/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/usr/lib64/jvm/jre/bin
+ create_exe_shims_ /media/sdb5/berny/coreutils/src
+ case $EXEEXT in
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ print_ver_ ls
+ test yes = yes
+ local i
+ for i in '$*'
+ env ls --version
ls (GNU coreutils) 8.12.99-18bd
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later .
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Richard M. Stallman and David MacKenzie.
+ require_strace_ stat
+ test 1 = 1
+ strace -V
+ strace -qe stat echo
+ require_dirent_d_type_
+ python
+ python /home/berny/coreutils/tests/d_type-check
+ for i in 1 2 3
+ ln -s nowhere dangle-1
+ for i in 1 2 3
+ ln -s nowhere da