GNU bug report logs - #8728
test 'stat-free-color' failed (latest git version v8.12-42-g7d44751)

Previous Next

Package: coreutils;

Reported by: Stefano Lattarini <stefano.lattarini <at> gmail.com>

Date: Tue, 24 May 2011 20:11:02 UTC

Severity: normal

Done: Jim Meyering <jim <at> meyering.net>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 8728 <at> debbugs.gnu.org (full text, mbox):

From: Jim Meyering <jim <at> meyering.net>
To: Stefano Lattarini <stefano.lattarini <at> gmail.com>
Cc: 8728 <at> debbugs.gnu.org
Subject: Re: bug#8728: test 'stat-free-color' failed (latest git version
	v8.12-42-g7d44751)
Date: Tue, 24 May 2011 23:10:41 +0200
Stefano Lattarini wrote:
> The log of the failed test is attached.  I've not looked into it in any way.
> Let me know if you need more information.
>
> Regards,
>   Stefano
>
> FAIL: ls/stat-free-color (exit: 1)
> ==================================
...
> + strace -o log -e stat,lstat ls --color=always .
> color-without-stat
...
> ++ wc -l
> + n_lines=0
> + test 0 = 1
> + fail=1

Hi Stefano,
Thanks for the report.
It would help to know why strace reported no matches.
Maybe it's due to alternate names like stat64?

If you apply the following patch and rerun that test,
it should provide that information:

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

If my guess is correct, then adding ",stat64,lstat64"
to the strace command may be the solution:

   strace -o log -e stat,lstat,stat64,lstat64 ls --color=always . || fail=1

From 06a94be331d7e31048f2bb4e659130159cd454f0 Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering <at> redhat.com>
Date: Tue, 24 May 2011 23:06:31 +0200
Subject: [PATCH] tests: stat-free-color: write more into the log upon failure

* tests/ls/stat-free-color: Print syscall log upon error,
to aid diagnosis.
---
 tests/ls/stat-free-color |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tests/ls/stat-free-color b/tests/ls/stat-free-color
index d11c6f4..f14beb9 100755
--- a/tests/ls/stat-free-color
+++ b/tests/ls/stat-free-color
@@ -49,6 +49,6 @@ eval $(dircolors -b color-without-stat)

 strace -o log -e stat,lstat ls --color=always . || fail=1
 n_lines=$(wc -l < log)
-test $n_lines = 1 || fail=1
+test $n_lines = 1 || { fail=1; cat log; }

 Exit $fail
--
1.7.5.2.585.gfbd48




This bug report was last modified 14 years and 1 day ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.