Hi,

I've been compiling diffutils on risc-v, but the testsuite fails in
new-file. I attached the complete log, but it appears that the option
parser doesn't understand '-'

the relevant lines from the log are:

  + returns_ 2 diff --unidirectional-new-file a -
  /build/diffutils/src/diffutils-3.6/tests/../src/diff: extra operand '-'
  /build/diffutils/src/diffutils-3.6/tests/../src/diff: Try 
'/build/diffutils/src/diffutils-3.6/tests/../src/diff --help' for more 
information.

curiously, the stdin test passes.

Any idea what could be going wrong?

Best,
Andreas



-- 

------------------------------------------------------------------------------
my GPG Public Key:                 https://files.grapentin.org/.gpg/public.key
------------------------------------------------------------------------------
++ initial_cwd_=/build/diffutils/src/diffutils-3.6/tests
+++ testdir_prefix_
+++ printf gt
++ pfx_=gt
+++ mktempd_ /build/diffutils/src/diffutils-3.6/tests gt-new-file.XXXX
+++ case $# in
+++ destdir_=/build/diffutils/src/diffutils-3.6/tests
+++ template_=gt-new-file.XXXX
+++ MAX_TRIES_=4
+++ case $destdir_ in
+++ destdir_slash_=/build/diffutils/src/diffutils-3.6/tests/
+++ case $template_ in
++++ unset TMPDIR
+++ d=/build/diffutils/src/diffutils-3.6/tests/gt-new-file.7lAd
+++ case $d in
+++ :
+++ test -d /build/diffutils/src/diffutils-3.6/tests/gt-new-file.7lAd
++++ ls -dgo /build/diffutils/src/diffutils-3.6/tests/gt-new-file.7lAd
+++ perms='drwx------ 2 4096 Mar 20 15:00 
/build/diffutils/src/diffutils-3.6/tests/gt-new-file.7lAd'
+++ case $perms in
+++ :
+++ echo /build/diffutils/src/diffutils-3.6/tests/gt-new-file.7lAd
+++ return
++ test_dir_=/build/diffutils/src/diffutils-3.6/tests/gt-new-file.7lAd
++ cd /build/diffutils/src/diffutils-3.6/tests/gt-new-file.7lAd
++ 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_=/build/diffutils/src/diffutils-3.6/tests/../src
+ case $abs_path_dir_ in
+ 
PATH=/build/diffutils/src/diffutils-3.6/tests/../src:/build/diffutils/src/diffutils-3.6/src:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
+ create_exe_shims_ /build/diffutils/src/diffutils-3.6/tests/../src
+ case $EXEEXT in
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ fail=0
+ echo a
+ echo '0a1
> a'
+ returns_ 1 diff -N - a
/build/diffutils/src/diffutils-3.6/tests/../src/diff: extra operand 'a'
/build/diffutils/src/diffutils-3.6/tests/../src/diff: Try 
'/build/diffutils/src/diffutils-3.6/tests/../src/diff --help' for more 
information.
+ fail=1
+ compare exp out
+ compare_dev_null_ exp out
+ test 2 = 2
+ test xexp = x/dev/null
+ test xout = x/dev/null
+ return 2
+ case $? in
+ compare_ exp out
+ diff -u exp out
--- exp 2018-03-20 15:00:03.000000000 +0100
+++ out 2018-03-20 15:00:03.000000000 +0100
@@ -1,2 +0,0 @@
-0a1
-> a
+ fail=1
+ returns_ 1 diff --unidirectional-new-file - a
/build/diffutils/src/diffutils-3.6/tests/../src/diff: extra operand 'a'
/build/diffutils/src/diffutils-3.6/tests/../src/diff: Try 
'/build/diffutils/src/diffutils-3.6/tests/../src/diff --help' for more 
information.
+ fail=1
+ compare exp out
+ compare_dev_null_ exp out
+ test 2 = 2
+ test xexp = x/dev/null
+ test xout = x/dev/null
+ return 2
+ case $? in
+ compare_ exp out
+ diff -u exp out
--- exp 2018-03-20 15:00:03.000000000 +0100
+++ out 2018-03-20 15:00:03.000000000 +0100
@@ -1,2 +0,0 @@
-0a1
-> a
+ fail=1
+ returns_ 1 diff -N b -
+ compare exp out
+ compare_dev_null_ exp out
+ test 2 = 2
+ test xexp = x/dev/null
+ test xout = x/dev/null
+ return 2
+ case $? in
+ compare_ exp out
+ diff -u exp out
+ returns_ 1 diff --unidirectional-new-file b -
+ compare exp out
+ compare_dev_null_ exp out
+ test 2 = 2
+ test xexp = x/dev/null
+ test xout = x/dev/null
+ return 2
+ case $? in
+ compare_ exp out
+ diff -u exp out
+ echo '1d0
< a'
+ returns_ 1 diff -N a -
/build/diffutils/src/diffutils-3.6/tests/../src/diff: extra operand '-'
/build/diffutils/src/diffutils-3.6/tests/../src/diff: Try 
'/build/diffutils/src/diffutils-3.6/tests/../src/diff --help' for more 
information.
+ fail=1
+ compare exp out
+ compare_dev_null_ exp out
+ test 2 = 2
+ test xexp = x/dev/null
+ test xout = x/dev/null
+ return 2
+ case $? in
+ compare_ exp out
+ diff -u exp out
--- exp 2018-03-20 15:00:03.000000000 +0100
+++ out 2018-03-20 15:00:03.000000000 +0100
@@ -1,2 +0,0 @@
-1d0
-< a
+ fail=1
+ returns_ 2 diff --unidirectional-new-file a -
/build/diffutils/src/diffutils-3.6/tests/../src/diff: extra operand '-'
/build/diffutils/src/diffutils-3.6/tests/../src/diff: Try 
'/build/diffutils/src/diffutils-3.6/tests/../src/diff --help' for more 
information.
+ compare /dev/null out
+ compare_dev_null_ /dev/null out
+ test 2 = 2
+ test x/dev/null = x/dev/null
+ test -s out
+ return 0
+ return 0
+ returns_ 1 diff -N - b
+ compare exp out
+ compare_dev_null_ exp out
+ test 2 = 2
+ test xexp = x/dev/null
+ test xout = x/dev/null
+ return 2
+ case $? in
+ compare_ exp out
+ diff -u exp out
+ returns_ 2 diff --unidirectional-new-file - b
diff: b: No such file or directory
+ Exit 1
+ set +e
+ exit 1
+ exit 1
+ remove_tmp_
+ __st=1
+ cleanup_
+ :
+ test '' = yes
+ cd /build/diffutils/src/diffutils-3.6/tests
+ chmod -R u+rwx /build/diffutils/src/diffutils-3.6/tests/gt-new-file.7lAd
+ rm -rf /build/diffutils/src/diffutils-3.6/tests/gt-new-file.7lAd
+ exit 1
FAIL new-file (exit status: 1)

Attachment: signature.asc
Description: PGP signature

Reply via email to