Subject: bug#13894: Bug when running unit test

From: Souvik Banerjee <[email-masked]>
Date: Wed, 6 Mar 2013 17:49:28 -0600

I was trying to compile coreutils v8.21 on my system (Arch GNU/Linux). One
of the tests failed when compiling.
Here is src/coreutils-8.21/gnulib-tests/test-suite.log:
=====================================================
   GNU coreutils 8.21: gnulib-tests/test-suite.log
=====================================================

1 of 291 tests failed.  (26 tests were not run).
opt/java/jre/bin:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/lib/qt4/bin:/home/souvik1997/bin
+ create_exe_shims_ /tmp/coreutils/src/coreutils-8.21/gnulib-tests/.
+ case $EXEEXT in
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ tmpdir=vc-cvs
++ pwd
+
repo=/tmp/coreutils/src/coreutils-8.21/gnulib-tests/gt-test-vc-list-files-cvs.sh.913W/vc-cvs/repo
+ fail=0
+ for i in with-cvsu without
+ test with-cvsu = without
+ ok=0
+ mkdir vc-cvs
+ cd vc-cvs
+ skip_ 'cvs not found in PATH'
+ warn_ 'test-vc-list-files-cvs.sh: skipped test: cvs not found in PATH'
+ case $IFS in
+ printf '%s\n' 'test-vc-list-files-cvs.sh: skipped test: cvs not found in
PATH'
test-vc-list-files-cvs.sh: skipped test: cvs not found in PATH
+ test 2 = 2
+ Exit 77
+ set +e
+ exit 77
+ exit 77
+ remove_tmp_
+ __st=77
+ cleanup_
+ :
+ cd /tmp/coreutils/src/coreutils-8.21/gnulib-tests
+ chmod -R u+rwx
/tmp/coreutils/src/coreutils-8.21/gnulib-tests/gt-test-vc-list-files-cvs.sh.913W
+ rm -rf
/tmp/coreutils/src/coreutils-8.21/gnulib-tests/gt-test-vc-list-files-cvs.sh.913W
+ exit 77

SKIP: test-wcrtomb-w32-1.sh (exit: 77)
======================================

Skipping test: not a native Windows system

SKIP: test-wcrtomb-w32-2.sh (exit: 77)
======================================

Skipping test: not a native Windows system

SKIP: test-wcrtomb-w32-3.sh (exit: 77)
======================================

Skipping test: not a native Windows system

SKIP: test-wcrtomb-w32-4.sh (exit: 77)
======================================

Skipping test: not a native Windows system

SKIP: test-wcrtomb-w32-5.sh (exit: 77)
======================================

Skipping test: not a native Windows system
EOF

And here is the output of the compile:
[...]
FAIL: test-utimens
PASS: test-tls
PASS: test-vasnprintf
PASS: test-vasprintf-posix
PASS: test-vasprintf
SKIP: test-vc-list-files-cvs.sh
PASS: test-verify
PASS: test-vc-list-files-git.sh
PASS: test-version-etc.sh
PASS: test-vfprintf-posix.sh
PASS: test-update-copyright.sh
PASS: test-vprintf-posix.sh
PASS: test-wchar
PASS: test-wcrtomb.sh
SKIP: test-wcrtomb-w32-1.sh
SKIP: test-wcrtomb-w32-2.sh
SKIP: test-wcrtomb-w32-3.sh
SKIP: test-wcrtomb-w32-4.sh
PASS: test-wctype-h
PASS: test-utimensat
SKIP: test-wcrtomb-w32-5.sh
PASS: test-wcwidth
PASS: test-write
PASS: test-xprintf-posix.sh
PASS: test-xalloc-die.sh
PASS: test-xstrtoimax.sh
PASS: test-xvasprintf
PASS: test-xstrtol.sh
PASS: test-xstrtoumax.sh
PASS: test-yesno.sh
PASS: test-usleep
PASS: test-verify.sh
=====================================================
   GNU coreutils 8.21: gnulib-tests/test-suite.log
=====================================================

1 of 291 tests failed.  (26 tests were not run).

.. contents:: :depth: 2

SKIP: test-btowc1.sh (exit: 77)
===============================

Skipping test: no traditional french locale is installed

SKIP: test-btowc2.sh (exit: 77)
+
PATH=/tmp/coreutils/src/coreutils-8.21/gnulib-tests/.:/tmp/coreutils/src/coreutils-8.21/build-aux:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/java/bin:/opt/java/db/bin:/opt/java/jre/bin:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/lib/qt4/bin:/home/souvik1997/bin
+ create_exe_shims_ /tmp/coreutils/src/coreutils-8.21/gnulib-tests/.
+ case $EXEEXT in
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ tmpdir=vc-cvs
++ pwd
+
repo=/tmp/coreutils/src/coreutils-8.21/gnulib-tests/gt-test-vc-list-files-cvs.sh.913W/vc-cvs/repo
+ fail=0
+ for i in with-cvsu without
+ test with-cvsu = without
+ ok=0
+ mkdir vc-cvs
+ cd vc-cvs
+ skip_ 'cvs not found in PATH'
+ warn_ 'test-vc-list-files-cvs.sh: skipped test: cvs not found in PATH'
+ case $IFS in
+ printf '%s\n' 'test-vc-list-files-cvs.sh: skipped test: cvs not found in
PATH'
test-vc-list-files-cvs.sh: skipped test: cvs not found in PATH
+ test 2 = 2
+ Exit 77
+ set +e
+ exit 77
+ exit 77
+ remove_tmp_
+ __st=77
+ cleanup_
+ :
+ cd /tmp/coreutils/src/coreutils-8.21/gnulib-tests
+ chmod -R u+rwx
/tmp/coreutils/src/coreutils-8.21/gnulib-tests/gt-test-vc-list-files-cvs.sh.913W
+ rm -rf
/tmp/coreutils/src/coreutils-8.21/gnulib-tests/gt-test-vc-list-files-cvs.sh.913W
+ exit 77

SKIP: test-wcrtomb-w32-1.sh (exit: 77)
======================================

Skipping test: not a native Windows system

SKIP: test-wcrtomb-w32-2.sh (exit: 77)
======================================

Skipping test: not a native Windows system

SKIP: test-wcrtomb-w32-3.sh (exit: 77)
======================================

Skipping test: not a native Windows system

SKIP: test-wcrtomb-w32-4.sh (exit: 77)
======================================

Skipping test: not a native Windows system

SKIP: test-wcrtomb-w32-5.sh (exit: 77)
======================================

Skipping test: not a native Windows system
======================================
1 of 291 tests failed
(26 tests were not run)
See gnulib-tests/test-suite.log
Please report to [email-masked]
======================================
make[6]: *** [test-suite.log] Error 1
make[6]: Leaving directory `/tmp/coreutils/src/coreutils-8.21/gnulib-tests'
make[5]: *** [check-TESTS] Error 2
make[5]: Leaving directory `/tmp/coreutils/src/coreutils-8.21/gnulib-tests'
make[4]: *** [check-am] Error 2
make[4]: Leaving directory `/tmp/coreutils/src/coreutils-8.21/gnulib-tests'
make[3]: *** [check-recursive] Error 1
make[3]: Leaving directory `/tmp/coreutils/src/coreutils-8.21/gnulib-tests'
make[2]: *** [check] Error 2
make[2]: Leaving directory `/tmp/coreutils/src/coreutils-8.21/gnulib-tests'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/tmp/coreutils/src/coreutils-8.21'
make: *** [check] Error 2

EOF