FAIL: ls/getxattr-speedup (exit: 1)
===================================

++ initial_cwd_=/home/berny/git/coreutils/tests
++ fail=0
+++ testdir_prefix_
+++ printf gt
++ pfx_=gt
+++ mktempd_ /home/berny/git/coreutils/tests gt-getxattr-speedup.XXXX
+++ case $# in
+++ destdir_=/home/berny/git/coreutils/tests
+++ template_=gt-getxattr-speedup.XXXX
+++ MAX_TRIES_=4
+++ case $destdir_ in
+++ case $template_ in
++++ unset TMPDIR
++++ mktemp -d -t -p /home/berny/git/coreutils/tests gt-getxattr-speedup.XXXX
+++ d=/home/berny/git/coreutils/tests/gt-getxattr-speedup.3L4E
+++ case $d in
+++ test -d /home/berny/git/coreutils/tests/gt-getxattr-speedup.3L4E
++++ ls -dgo /home/berny/git/coreutils/tests/gt-getxattr-speedup.3L4E
++++ tr S -
+++ perms='drwx------ 2 4096 Feb 18 00:12 /home/berny/git/coreutils/tests/gt-getxattr-speedup.3L4E'
+++ case $perms in
+++ test 0 = 0
+++ echo /home/berny/git/coreutils/tests/gt-getxattr-speedup.3L4E
+++ return
++ test_dir_=/home/berny/git/coreutils/tests/gt-getxattr-speedup.3L4E
++ cd /home/berny/git/coreutils/tests/gt-getxattr-speedup.3L4E
++ 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/git/coreutils/tests/../src
++ echo /home/berny/git/coreutils/src
+ abs_path_dir_=/home/berny/git/coreutils/src
+ case $abs_path_dir_ in
+ PATH=/home/berny/git/coreutils/src:/home/berny/git/coreutils/src:/home/berny/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/sbin:/usr/sbin
+ create_exe_shims_ /home/berny/git/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.15.38-140ec
Copyright (C) 2012 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.
+ cat
+ cat k.c
#include <errno.h>
#include <stdio.h>
static unsigned long int n_calls;
ssize_t getxattr (const char *path, const char *name, void *value, size_t size)
{ ++n_calls; errno = ENOTSUP; return -1; }
ssize_t lgetxattr(const char *path, const char *name, void *value, size_t size)
{ ++n_calls; errno = ENOTSUP; return -1; }
__attribute__((destructor)) void p()
{
  FILE *fp = fopen ("x", "w"); if (!fp) return;
  fprintf (fp, "%lu\n", n_calls);
  fclose (fp);
}
+ gcc -std=gnu99 -fPIC -O2 -c k.c
+ ld -G k.o -o k.so
+ seq 100
+ xargs touch
+ LD_PRELOAD=./k.so
+ ls --color=always -l .
total 16
-rw-r--r-- 1 berny users    0 Feb 18 00:12 1
-rw-r--r-- 1 berny users    0 Feb 18 00:12 10
-rw-r--r-- 1 berny users    0 Feb 18 00:12 100
-rw-r--r-- 1 berny users    0 Feb 18 00:12 11
-rw-r--r-- 1 berny users    0 Feb 18 00:12 12
-rw-r--r-- 1 berny users    0 Feb 18 00:12 13
-rw-r--r-- 1 berny users    0 Feb 18 00:12 14
-rw-r--r-- 1 berny users    0 Feb 18 00:12 15
-rw-r--r-- 1 berny users    0 Feb 18 00:12 16
-rw-r--r-- 1 berny users    0 Feb 18 00:12 17
-rw-r--r-- 1 berny users    0 Feb 18 00:12 18
-rw-r--r-- 1 berny users    0 Feb 18 00:12 19
-rw-r--r-- 1 berny users    0 Feb 18 00:12 2
-rw-r--r-- 1 berny users    0 Feb 18 00:12 20
-rw-r--r-- 1 berny users    0 Feb 18 00:12 21
-rw-r--r-- 1 berny users    0 Feb 18 00:12 22
-rw-r--r-- 1 berny users    0 Feb 18 00:12 23
-rw-r--r-- 1 berny users    0 Feb 18 00:12 24
-rw-r--r-- 1 berny users    0 Feb 18 00:12 25
-rw-r--r-- 1 berny users    0 Feb 18 00:12 26
-rw-r--r-- 1 berny users    0 Feb 18 00:12 27
-rw-r--r-- 1 berny users    0 Feb 18 00:12 28
-rw-r--r-- 1 berny users    0 Feb 18 00:12 29
-rw-r--r-- 1 berny users    0 Feb 18 00:12 3
-rw-r--r-- 1 berny users    0 Feb 18 00:12 30
-rw-r--r-- 1 berny users    0 Feb 18 00:12 31
-rw-r--r-- 1 berny users    0 Feb 18 00:12 32
-rw-r--r-- 1 berny users    0 Feb 18 00:12 33
-rw-r--r-- 1 berny users    0 Feb 18 00:12 34
-rw-r--r-- 1 berny users    0 Feb 18 00:12 35
-rw-r--r-- 1 berny users    0 Feb 18 00:12 36
-rw-r--r-- 1 berny users    0 Feb 18 00:12 37
-rw-r--r-- 1 berny users    0 Feb 18 00:12 38
-rw-r--r-- 1 berny users    0 Feb 18 00:12 39
-rw-r--r-- 1 berny users    0 Feb 18 00:12 4
-rw-r--r-- 1 berny users    0 Feb 18 00:12 40
-rw-r--r-- 1 berny users    0 Feb 18 00:12 41
-rw-r--r-- 1 berny users    0 Feb 18 00:12 42
-rw-r--r-- 1 berny users    0 Feb 18 00:12 43
-rw-r--r-- 1 berny users    0 Feb 18 00:12 44
-rw-r--r-- 1 berny users    0 Feb 18 00:12 45
-rw-r--r-- 1 berny users    0 Feb 18 00:12 46
-rw-r--r-- 1 berny users    0 Feb 18 00:12 47
-rw-r--r-- 1 berny users    0 Feb 18 00:12 48
-rw-r--r-- 1 berny users    0 Feb 18 00:12 49
-rw-r--r-- 1 berny users    0 Feb 18 00:12 5
-rw-r--r-- 1 berny users    0 Feb 18 00:12 50
-rw-r--r-- 1 berny users    0 Feb 18 00:12 51
-rw-r--r-- 1 berny users    0 Feb 18 00:12 52
-rw-r--r-- 1 berny users    0 Feb 18 00:12 53
-rw-r--r-- 1 berny users    0 Feb 18 00:12 54
-rw-r--r-- 1 berny users    0 Feb 18 00:12 55
-rw-r--r-- 1 berny users    0 Feb 18 00:12 56
-rw-r--r-- 1 berny users    0 Feb 18 00:12 57
-rw-r--r-- 1 berny users    0 Feb 18 00:12 58
-rw-r--r-- 1 berny users    0 Feb 18 00:12 59
-rw-r--r-- 1 berny users    0 Feb 18 00:12 6
-rw-r--r-- 1 berny users    0 Feb 18 00:12 60
-rw-r--r-- 1 berny users    0 Feb 18 00:12 61
-rw-r--r-- 1 berny users    0 Feb 18 00:12 62
-rw-r--r-- 1 berny users    0 Feb 18 00:12 63
-rw-r--r-- 1 berny users    0 Feb 18 00:12 64
-rw-r--r-- 1 berny users    0 Feb 18 00:12 65
-rw-r--r-- 1 berny users    0 Feb 18 00:12 66
-rw-r--r-- 1 berny users    0 Feb 18 00:12 67
-rw-r--r-- 1 berny users    0 Feb 18 00:12 68
-rw-r--r-- 1 berny users    0 Feb 18 00:12 69
-rw-r--r-- 1 berny users    0 Feb 18 00:12 7
-rw-r--r-- 1 berny users    0 Feb 18 00:12 70
-rw-r--r-- 1 berny users    0 Feb 18 00:12 71
-rw-r--r-- 1 berny users    0 Feb 18 00:12 72
-rw-r--r-- 1 berny users    0 Feb 18 00:12 73
-rw-r--r-- 1 berny users    0 Feb 18 00:12 74
-rw-r--r-- 1 berny users    0 Feb 18 00:12 75
-rw-r--r-- 1 berny users    0 Feb 18 00:12 76
-rw-r--r-- 1 berny users    0 Feb 18 00:12 77
-rw-r--r-- 1 berny users    0 Feb 18 00:12 78
-rw-r--r-- 1 berny users    0 Feb 18 00:12 79
-rw-r--r-- 1 berny users    0 Feb 18 00:12 8
-rw-r--r-- 1 berny users    0 Feb 18 00:12 80
-rw-r--r-- 1 berny users    0 Feb 18 00:12 81
-rw-r--r-- 1 berny users    0 Feb 18 00:12 82
-rw-r--r-- 1 berny users    0 Feb 18 00:12 83
-rw-r--r-- 1 berny users    0 Feb 18 00:12 84
-rw-r--r-- 1 berny users    0 Feb 18 00:12 85
-rw-r--r-- 1 berny users    0 Feb 18 00:12 86
-rw-r--r-- 1 berny users    0 Feb 18 00:12 87
-rw-r--r-- 1 berny users    0 Feb 18 00:12 88
-rw-r--r-- 1 berny users    0 Feb 18 00:12 89
-rw-r--r-- 1 berny users    0 Feb 18 00:12 9
-rw-r--r-- 1 berny users    0 Feb 18 00:12 90
-rw-r--r-- 1 berny users    0 Feb 18 00:12 91
-rw-r--r-- 1 berny users    0 Feb 18 00:12 92
-rw-r--r-- 1 berny users    0 Feb 18 00:12 93
-rw-r--r-- 1 berny users    0 Feb 18 00:12 94
-rw-r--r-- 1 berny users    0 Feb 18 00:12 95
-rw-r--r-- 1 berny users    0 Feb 18 00:12 96
-rw-r--r-- 1 berny users    0 Feb 18 00:12 97
-rw-r--r-- 1 berny users    0 Feb 18 00:12 98
-rw-r--r-- 1 berny users    0 Feb 18 00:12 99
-rw-r--r-- 1 berny users  456 Feb 18 00:12 k.c
-rw-r--r-- 1 berny users 2736 Feb 18 00:12 k.o
-rwxr-xr-x 1 berny users 6471 Feb 18 00:12 [0m[01;32mk.so[0m
++ cat x
cat: x: No such file or directory
+ n_calls=
+ test '' -le 3
./ls/getxattr-speedup: line 56: test: : integer expression expected
+ fail=1
+ Exit 1
+ set +e
+ exit 1
+ exit 1
+ remove_tmp_
+ __st=1
+ cleanup_
+ :
+ cd /home/berny/git/coreutils/tests
+ chmod -R u+rwx /home/berny/git/coreutils/tests/gt-getxattr-speedup.3L4E
+ rm -rf /home/berny/git/coreutils/tests/gt-getxattr-speedup.3L4E
+ exit 1
