GNU bug report logs -
#39486
Test fail of tests/misc/env-S.pl and tests/misc/tty
Previous Next
To reply to this bug, email your comments to 39486 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-coreutils <at> gnu.org
:
bug#39486
; Package
coreutils
.
(Fri, 07 Feb 2020 16:43:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
"ZJU" <21625039 <at> zju.edu.cn>
:
New bug report received and forwarded. Copy sent to
bug-coreutils <at> gnu.org
.
(Fri, 07 Feb 2020 16:43:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Description of problem:
1. When i run make check under the building root, the result of test suit
failed two. The failure and the test suite log is the same of coreutils 8.30
and 8.31.
2. When i run the test suit as root, there were about 12 failures, dose the
root influence the test suit?
Version-Release number of selected component (if applicable):
The version of coreutils is 8.31 or 8.30. How reproducible:
Steps to Reproduce:1.make test under build root or rpmbuild -ba
coreutils.spec(I use the spec of fedora31)
Actual results:
================================================
GNU coreutils 8.31: ./tests/test-suite.log
================================================
# TOTAL: 614
# PASS: 477
# SKIP: 135
# XFAIL: 0
# FAIL: 2
# XPASS: 0
# ERROR: 0
.. contents:: :depth: 2
FAIL: tests/misc/env-S
======================
env (GNU coreutils) 8.31
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<https://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 Mlynarik, David MacKenzie, and Assaf Gordon.
1...
2...
3...
4...
5...
...
err_sp2...
err_sp3...
err_sp5...
env-S.pl: test err_sp5 failed: exit status mismatch: expected 127, got 126
err_sp6...
env-S.pl: test err_sp6 failed: exit status mismatch: expected 127, got 126
1-debug...
2-debug...
...
p10-debug...
FAIL tests/misc/env-S.pl (exit status: 1)
FAIL: tests/misc/tty
====================
++ initial_cwd_=/home/abuild/rpmbuild/BUILD/coreutils-8.31/single
+++ testdir_prefix_
+++ printf gt
++ pfx_=gt
+++ mktempd_ /home/abuild/rpmbuild/BUILD/coreutils-8.31/single
gt-tty.sh.XXXX
+++ case $# in
+++ destdir_=/home/abuild/rpmbuild/BUILD/coreutils-8.31/single
+++ template_=gt-tty.sh.XXXX
+++ MAX_TRIES_=4
...
Written by David MacKenzie.
+ test -t 0
+ tty
not a tty
+ fail=1
+ tty -s
+ returns_ 1 tty
not a tty
+ returns_ 1 tty -s
+ returns_ 1 tty
not a tty
+ returns_ 1 tty -s
+ returns_ 2 tty a
tty: extra operand 'a'
Try 'tty --help' for more information.
+ returns_ 2 tty -s a
tty: extra operand 'a'
Try 'tty --help' for more information.
+ test -w /dev/full
+ test -c /dev/full
+ test -t 0
+ returns_ 3 tty
tty: write error: No space left on device
+ returns_ 3 tty
tty: write error: No space left on device
+ Exit 1
+ set +e
+ exit 1
+ exit 1
+ remove_tmp_
+ __st=1
+ cleanup_
+ :
+ test '' = yes
+ cd /home/abuild/rpmbuild/BUILD/coreutils-8.31/single
+ chmod -R u+rwx
/home/abuild/rpmbuild/BUILD/coreutils-8.31/single/gt-tty.sh.HU2U
+ rm -rf /home/abuild/rpmbuild/BUILD/coreutils-8.31/single/gt-tty.sh.HU2U
+ exit 1
FAIL tests/misc/tty.sh (exit status: 1)
Expected results:
No failures.
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#39486
; Package
coreutils
.
(Mon, 10 Feb 2020 07:13:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 39486 <at> debbugs.gnu.org (full text, mbox):
On 2020-02-07 16:23, ZJU wrote:
> 2. When i run the test suit as root, there were about 12 failures, dose the
> root influence the test suit?
Indeed, the regular tests ('make check') are not intended to be run as 'root'.
Instead, there are several tests which are, and the best way to start those
is documented in the README file:
sudo env PATH="$PATH" NON_ROOT_USERNAME=$USER make -k check-root
Have a nice day,
Berny
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#39486
; Package
coreutils
.
(Mon, 10 Feb 2020 16:53:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 39486 <at> debbugs.gnu.org (full text, mbox):
[re-adding 39486 <at> debbugs.gnu.org]
On 2/10/20 8:44 AM, ZJU wrote:
> Thank you for your apply.
> 1. When i run make check under the building root, the result of test suit
> failed two. The failure and the test suite log is the same of coreutils 8.30
> and 8.31.
> This problem I ran the test with non-root user. I want to know if there is any
> reason that could caused the failure.
> Thank you.
Without knowing more about your environment, it is a bit hard to
judge where the failures come from.
As a see an 'abuild' user, you might use the OpenBuildSystem like the openSUSE
project uses [1], and you seem to build with the --enable-single-binary option
of the './configure' script. That should work (see [1]).
[1] https://build.opensuse.org/package/show/Base:System/coreutils
Please describe your build setup a bit more, so we could eventually reproduce
the issue on a similar setup.
Thanks & have a nice day,
Berny
This bug report was last modified 4 years and 291 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.