coreutils
[Top][All Lists]
Advanced

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

apparently non-spurious tests/misc/xattr failure with coreutils 8.23


From: Nick Alcock
Subject: apparently non-spurious tests/misc/xattr failure with coreutils 8.23
Date: Thu, 02 Oct 2014 16:59:11 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)

Here's the FAIL output. (Note that despite the name,
/usr/local/share/compiler-nfs is not nfs-mounted, but is an
xattr-capable ext4 filesystem which I pointed the testsuite at after
getting a similar failure on tmpfs.)

This is with kernel 3.16.3 and libattr current as of commit
55f39ef1ddec924d746d96cbe5bdc1030eeff92b (which is still the trunk
head). Looking at the first failure, it looks like xattrs simply aren't
being properly preserved by cp, even though configure spotted it and cp
is linked against libattr:

spindle 1473 /usr/src/coreutils% eu-readelf -a x86_64-spindle/src/cp | grep 
NEEDED
  NEEDED            Shared library: [libacl.so.1]
  NEEDED            Shared library: [libattr.so.1]
  NEEDED            Shared library: [libc.so.6]

FAIL: tests/misc/xattr
======================

++ initial_cwd_=/tmp/shai-build-trees/x86_64-spindle
++ fail=0
+++ testdir_prefix_
+++ printf gt
++ pfx_=gt
+++ mktempd_ /tmp/shai-build-trees/x86_64-spindle gt-xattr.sh.XXXX
+++ case $# in
+++ destdir_=/tmp/shai-build-trees/x86_64-spindle
+++ template_=gt-xattr.sh.XXXX
+++ MAX_TRIES_=4
+++ case $destdir_ in
+++ case $template_ in
++++ unset TMPDIR
+++ d=/tmp/shai-build-trees/x86_64-spindle/gt-xattr.sh.exkQ
+++ case $d in
+++ test -d /tmp/shai-build-trees/x86_64-spindle/gt-xattr.sh.exkQ
++++ ls -dgo /tmp/shai-build-trees/x86_64-spindle/gt-xattr.sh.exkQ
++++ tr S -
+++ perms='drwx------ 2 4096 Oct  2 16:06 
/tmp/shai-build-trees/x86_64-spindle/gt-xattr.sh.exkQ'
+++ case $perms in
+++ test 0 = 0
+++ echo /tmp/shai-build-trees/x86_64-spindle/gt-xattr.sh.exkQ
+++ return
++ test_dir_=/tmp/shai-build-trees/x86_64-spindle/gt-xattr.sh.exkQ
++ cd /tmp/shai-build-trees/x86_64-spindle/gt-xattr.sh.exkQ
++ 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_=/tmp/shai-build-trees/x86_64-spindle/./src
+ case $abs_path_dir_ in
+ 
PATH=/tmp/shai-build-trees/x86_64-spindle/./src:/tmp/shai-build-trees/x86_64-spindle/src:/home/compiler/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/games
+ create_exe_shims_ /tmp/shai-build-trees/x86_64-spindle/./src
+ case $EXEEXT in
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ print_ver_ cp mv ginstall
+ test yes = yes
+ local i
+ for i in '$*'
+ env cp --version
cp (GNU coreutils) 8.23.1-5550a-dirty
Copyright (C) 2014 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 Torbjorn Granlund, David MacKenzie, and Jim Meyering.
+ for i in '$*'
+ env mv --version
mv (GNU coreutils) 8.23.1-5550a-dirty
Copyright (C) 2014 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 Mike Parker, David MacKenzie, and Jim Meyering.
+ for i in '$*'
+ env ginstall --version
install (GNU coreutils) 8.23.1-5550a-dirty
Copyright (C) 2014 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 David MacKenzie.
+ touch src dest
+ cp --preserve=xattr -n src dest
+ . /tmp/shai-build-trees/x86_64-spindle/tests/other-fs-tmpdir
++ test set = set
++ other_partition_tmpdir=
+++ stat -c %d .
++ dot_mount_point=1792
++ for d in '$CANDIDATE_TMP_DIRS'
++ test -d /usr/local/share/compiler-nfs
+++ stat -L -c %d /usr/local/share/compiler-nfs
++ d_mount_point=64769
++ test x64769 = x1792
++ mkdir /usr/local/share/compiler-nfs/tmp32050
++ other_partition_tmpdir=/usr/local/share/compiler-nfs/tmp32050
++ break
++ test -z /usr/local/share/compiler-nfs/tmp32050
++ test yes = yes
++ set -x
+ b_other=/usr/local/share/compiler-nfs/tmp32050/b
+ rm -f /usr/local/share/compiler-nfs/tmp32050/b
+ xattr_name=user.foo
+ xattr_value=bar
+ xattr_pair='user.foo="bar"'
+ touch a
+ getfattr -d a
+ grep -F 'user.foo="bar"' out_a
+ setfattr -n user.foo -v bar a
+ getfattr -d a
+ grep -F 'user.foo="bar"' out_a
user.foo="bar"
+ cp a b
+ getfattr -d b
+ grep -F 'user.foo="bar"' out_b
+ cp --preserve=xattr a b
+ getfattr -d b
+ grep -F 'user.foo="bar"' out_b
+ fail=1
+ cp --preserve=all a c
+ getfattr -d c
+ grep -F 'user.foo="bar"' out_c
+ fail=1
+ cp -a a d
+ compare /dev/null err
+ compare_dev_null_ /dev/null err
+ test 2 = 2
+ test x/dev/null = x/dev/null
+ test -s err
+ return 0
+ return 0
+ getfattr -d d
+ grep -F 'user.foo="bar"' out_d
+ fail=1
+ chmod a-w a
+ rm -f e
+ cp --preserve=xattr a e
+ getfattr -d e
+ grep -F 'user.foo="bar"' out_e
+ fail=1
++ stat --format=%a a
+ src_perm=444
++ stat --format=%a e
+ dst_perm=444
+ test 444 = 444
+ chmod u+w a
+ rm b
+ ginstall a b
+ getfattr -d b
+ grep -F 'user.foo="bar"' out_b
+ mv a b
+ getfattr -d b
+ grep -F 'user.foo="bar"' out_b
user.foo="bar"
+ test_mv=1
+ touch /usr/local/share/compiler-nfs/tmp32050/b
+ setfattr -n user.foo -v bar /usr/local/share/compiler-nfs/tmp32050/b
+ getfattr -d /usr/local/share/compiler-nfs/tmp32050/b
getfattr: Removing leading '/' from absolute path names
+ grep -F 'user.foo="bar"' out_b
user.foo="bar"
+ rm -f /usr/local/share/compiler-nfs/tmp32050/b
+ test 1 -eq 1
+ mv b /usr/local/share/compiler-nfs/tmp32050/b
+ getfattr -d /usr/local/share/compiler-nfs/tmp32050/b
+ grep -F 'user.foo="bar"' out_b
+ fail=1
+ Exit 1
+ set +e
+ exit 1
+ exit 1
+ remove_tmp_
+ __st=1
+ cleanup_
+ rm -rf /usr/local/share/compiler-nfs/tmp32050
+ cd /tmp/shai-build-trees/x86_64-spindle
+ chmod -R u+rwx /tmp/shai-build-trees/x86_64-spindle/gt-xattr.sh.exkQ
+ rm -rf /tmp/shai-build-trees/x86_64-spindle/gt-xattr.sh.exkQ
+ exit 1



reply via email to

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