Subject: Test fail of tests/misc/env-S.pl and tests/misc/tty

From: "ZJU" <[email-masked]>
Date: Fri, 7 Feb 2020 23:23:09 +0800

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.