Hi,
this should fix the test failures in this test case. Is it OK for trunk? Thanks Bernd.
From a8008af3db94a9dff7ae243ebfb40f45c54b3a81 Mon Sep 17 00:00:00 2001 From: Bernd Edlinger <bernd.edlin...@hotmail.de> Date: Thu, 7 Jan 2021 09:37:32 +0100 Subject: [PATCH] Fix test failures from outputs.exp The .ld1_args file is not created when HAVE_GNU_LD is false. The ltrans0.ltrans_arg file is not created when the make jobserver is avaliable. 2021-01-07 Bernd Edlinger <bernd.edlin...@hotmail.de> PR testsuite/98225 * gcc.misc-tests/outputs.exp: Fix test case. --- gcc/testsuite/gcc.misc-tests/outputs.exp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gcc/testsuite/gcc.misc-tests/outputs.exp b/gcc/testsuite/gcc.misc-tests/outputs.exp index 80d4b61..495dbcd 100644 --- a/gcc/testsuite/gcc.misc-tests/outputs.exp +++ b/gcc/testsuite/gcc.misc-tests/outputs.exp @@ -67,6 +67,10 @@ if {[board_info $dest exists output_format]} { append link_options " additional_flags=-Wl,-oformat,[board_info $dest output_format]" } +# Avoid possible influence from the make jobserver, +# otherwise ltrans0.ltrans_args files may be missing. +unsetenv MAKEFLAGS + # For the test named TEST, run the compiler with SOURCES and OPTS, and # look in DIRS for OUTPUTS. SOURCES is a list of suffixes for source # files starting with $b in $srcdir/$subdir, OPTS is a string with @@ -163,6 +167,9 @@ proc outest { test sources opts dirs outputs } { if { $ogl != {} } { pass "$test: $d$o" file delete $ogl + } elseif { [string match "*.ld1_args" $o] } { + # This file may be missing if !HAVE_GNU_LD + pass "$test: $d$o" } else { fail "$test: $d$o" } -- 1.9.1