bug-coreutils
[Top][All Lists]
Advanced

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

coreutils-8.2 misc/ls-time test failure


From: John Stanley
Subject: coreutils-8.2 misc/ls-time test failure
Date: Tue, 15 Dec 2009 18:42:46 -0500
User-agent: Thunderbird 2.0.0.23 (X11/20090812)

The misc/ls-time test fails for coreutils-8.2, but did not fail for coreutils-7.6.

Basically, what's happening is that 'touch -a ..' updated ctime in coreutils-7.6,
but does not update ctime in coreutils-8.2 (hence misc/ls-time fails).

I'm not sure if this is a bug in coreutils-8.2, or a bug in coreutils-7.6; I tend to lean toward that latter, as I believe that an atime update in an inode should not result in a ctime update. However, I'm not sure about this. Could this test
failure be due to glibc-2.11 ?

Here's an example of the foregoing; after coreutils installation, run the following
'touch' test (code pulled from misc/ls-time test):

-----------------------------------------
rm -f a b c
touch -m -d '1998-01-15 23:00' a
touch -m -d '1998-01-15 22:00' b
touch -m -d '1998-01-15 21:00' c
ls  --full-time -c a c
echo
touch -a -d '1998-01-14 13:00' c
touch -a -d '1998-01-14 12:00' b
sleep 2
touch -a -d '1998-01-14 11:00' a
ls  --full-time -c a c
-----------------------------------------

For coreutils-7.6, this gives:

-rw-r--r-- 1 root root 0 2009-12-15 18:17:58.935039372 -0500 a
-rw-r--r-- 1 root root 0 2009-12-15 18:17:58.941039579 -0500 c

-rw-r--r-- 1 root root 0 2009-12-15 18:18:00.949039236 -0500 a
-rw-r--r-- 1 root root 0 2009-12-15 18:17:58.944039683 -0500 c

For coreutils-8.2, this gives:

-rw-r--r-- 1 root root 0 2009-12-15 18:17:49.103562929 -0500 a
-rw-r--r-- 1 root root 0 2009-12-15 18:17:49.129563658 -0500 c

-rw-r--r-- 1 root root 0 2009-12-15 18:17:49.103562929 -0500 a
-rw-r--r-- 1 root root 0 2009-12-15 18:17:49.129563658 -0500 c


Build info for coreutils-8.2:
-------------------------------------------------------------------------------

Host triplet: i686-pc-linux-gnu

coreutils: 8.2

kernel:    2.6.32.1
gcc:       4.4.2
glibc:     2.11
binutils:  2.20
gmp:       4.3.1
mpfr:      2.4.2


Build configuration:

GCC_CFLAGS="-O2 -march=i686"

CFLAGS="$GCC_CFLAGS" \
CXXFLAGS="$GCC_CFLAGS" \
./configure \
 --prefix=/$PREFIX \
 --disable-libcap \
 --disable-xattr \
 --disable-acl \
 --infodir=/$PREFIX/share/info \
 --mandir=/$PREFIX/share/man &&
make

Test result summary:
--------------------------------------------------------------------
=============================================
  GNU coreutils 8.2: tests/test-suite.log
=============================================

1 of 367 tests failed.  (35 tests were not run).
--------------------------------------------------------------------

The test tests/misc/ls-time fails:
--------------------------------------------------------------------

PASS: rm/dangling-symlink
FAIL: misc/ls-time
PASS: rm/deep-1

FAIL: misc/ls-time (exit: 1)
============================

+ ls --version
ls (GNU coreutils) 8.2
Copyright (C) 2009 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 Richard M. Stallman and David MacKenzie.
+ . ./test-lib.sh
++ unset function_test
++ eval 'function_test() { return 11; }; function_test'
+++ function_test
+++ return 11
++ test 11 '!=' 11
+++ pwd
++ test_dir_=/home/bld/coreutils-8.2-jps_src/coreutils-8.2/tests
+++ this_test_
+++ sed 's,.*/,,'
+++ echo ././misc/ls-time
++ this_test=ls-time
+++ /home/bld/coreutils-8.2-jps_src/coreutils-8.2/src/mktemp -d --tmp=/home/bld/coreutils-8.2-jps_src/coreutils-8.2/tests cu-ls-time.XXXXXXXXXX ++ t_=/home/bld/coreutils-8.2-jps_src/coreutils-8.2/tests/cu-ls-time.ekn1gcEgji
++ trap remove_tmp_ 0
++ trap 'Exit $?' 1 2 13 15
++ cd /home/bld/coreutils-8.2-jps_src/coreutils-8.2/tests/cu-ls-time.ekn1gcEgji
++ grep GNU
++ diff --version
++ sanitize_path_
++ local 'saved_IFS=
'
++ IFS=:
++ set -- /home/bld/coreutils-8.2-jps_src/coreutils-8.2/src /bin /usr/bin
++ IFS='
'
++ local d d1
++ local colon=
++ local new_path=
++ for d in '"$@"'
++ test -z /home/bld/coreutils-8.2-jps_src/coreutils-8.2/src
++ d1=/home/bld/coreutils-8.2-jps_src/coreutils-8.2/src
++ ls -d /home/bld/coreutils-8.2-jps_src/coreutils-8.2/src/.
++ new_path=/home/bld/coreutils-8.2-jps_src/coreutils-8.2/src
++ colon=:
++ for d in '"$@"'
++ test -z /bin
++ d1=/bin
++ ls -d /bin/.
++ new_path=/home/bld/coreutils-8.2-jps_src/coreutils-8.2/src:/bin
++ colon=:
++ for d in '"$@"'
++ test -z /usr/bin
++ d1=/usr/bin
++ ls -d /usr/bin/.
++ new_path=/home/bld/coreutils-8.2-jps_src/coreutils-8.2/src:/bin:/usr/bin
++ colon=:
++ PATH=/home/bld/coreutils-8.2-jps_src/coreutils-8.2/src:/bin:/usr/bin
++ export PATH
++ fail=0
+ TZ=UTC0
+ export TZ
+ t1='1998-01-13 21:00'
+ t2='1998-01-13 22:00'
+ t3='1998-01-13 23:00'
+ u1='1998-01-14 11:00'
+ u2='1998-01-14 12:00'
+ u3='1998-01-14 13:00'
+ touch -m -d '1998-01-13 23:00' a
+ touch -m -d '1998-01-13 22:00' b
+ touch -m -d '1998-01-13 21:00' c
+ touch -a -d '1998-01-14 13:00' c
+ touch -a -d '1998-01-14 12:00' b
+ sleep 2
+ touch -a -d '1998-01-14 11:00' a
++ ls -c a c
+ set c a
+ test 'c a' = 'a c'
+ fail=1
+ sleep 2
+ ln c d
++ ls --full -l a
+ set -- -rw-r--r-- 1 nobody nogroup 0 1998-01-13 23:00:00.000000000 +0000 a
+ case "$*" in
++ ls --full -lu a
+ set -- -rw-r--r-- 1 nobody nogroup 0 1998-01-14 11:00:00.000000000 +0000 a
+ case "$*" in
++ ls -ut a b c
+ set c b a
+ test 'c b a' = 'c b a'
+ :
+ test 1 = 1
+ ls -l --full-time --time=access a b c
-rw-r--r-- 1 nobody nogroup 0 1998-01-14 11:00:00.000000000 +0000 a
-rw-r--r-- 1 nobody nogroup 0 1998-01-14 12:00:00.000000000 +0000 b
-rw-r--r-- 2 nobody nogroup 0 1998-01-14 13:00:00.000000000 +0000 c
++ ls -t a b c
+ set a b c
+ test 'a b c' = 'a b c'
+ :
+ test 1 = 1
+ ls -l --full-time a b c-rw-r--r-- 1 nobody nogroup 0 1998-01-13 23:00:00.000000000 +0000 a
-rw-r--r-- 1 nobody nogroup 0 1998-01-13 22:00:00.000000000 +0000 b
-rw-r--r-- 2 nobody nogroup 0 1998-01-13 21:00:00.000000000 +0000 c
++ ls -ct a c
+ set c a
+ test 'c a' = 'c a'
+ : ok
+ Exit 1
+ set +e
+ exit 1
+ exit 1
+ remove_tmp_
+ __st=1
+ cleanup_
+ :
+ cd /home/bld/coreutils-8.2-jps_src/coreutils-8.2/tests
+ chmod -R u+rwx /home/bld/coreutils-8.2-jps_src/coreutils-8.2/tests/cu-ls-time.ekn1gcEgji + rm -rf /home/bld/coreutils-8.2-jps_src/coreutils-8.2/tests/cu-ls-time.ekn1gcEgji
+ exit 1
--------------------------------------------------------------------






reply via email to

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