binutils-gdb/ld/testsuite/ld-gc
Alan Modra 348fe36b1d Remove perror from ld_assemble, ld_compile and ld_nm
ERROR should really be reserved for errors in the testsuite framework,
not just normal errors from the tools under test.  Removing use of
perror has been suggested before but without action, over concerns
that some test failures might be missed.  This patch removes uses of
perror in ld_assemble, ld_compile and ld_nm, and updates numerous
places that ignored the result of these functions by inappropriately
returning an "unresolved" test status.  Net result over my large set
of targets look good, in some cases improving the diagnostics, eg:

i386-msdos  -ERROR: tmpdir/script: nm failed
i386-msdos  -ERROR: tmpdir/script: nm failed
i386-msdos  -ERROR: tmpdir/script: nm failed
i386-msdos  -ERROR: tmpdir/script: nm failed
i386-msdos  +FAIL: script
i386-msdos  +FAIL: MRI script
i386-msdos  +FAIL: MEMORY
i386-msdos  +FAIL: MEMORY with symbols

	* testsuite/lib/ld-lib.exp (default_ld_compile): Don't perror on
	a compiler error.
	(default_ld_assemble): Similarly for an assembler error.
	(default_ld_nm): Similarly for an nm error.
	(run_ld_link_tests): Report ld_assemble errors as a fail.
	(check_as_cfi): Remove now unnecessary perror substitution.
	* testsuite/ld-elf/exclude.exp: Report ld_nm error return as test
	fails rather then unresolved.
	* testsuite/ld-gc/gc.exp: Likewise.
	* testsuite/ld-scripts/alignof.exp: Likewise.
	* testsuite/ld-scripts/defined.exp: Likewise.
	* testsuite/ld-scripts/script.exp: Likewise.
	* testsuite/ld-scripts/sizeof.exp: Likewise.
	* testsuite/ld-selective/selective.exp: Likewise.
	* testsuite/ld-scripts/extern.exp: Likewise.  Return on ld_link
	failure.
	* testsuite/ld-elfweak/elfweak.exp: Report compiler errors as
	test unresolved.
	* testsuite/ld-fastcall/fastcall.exp: Report assember errors as
	test fails.
	* testsuite/ld-i386/i386.exp (iamcu_tests): Likewise.
	* testsuite/ld-ia64/line.exp: Likewise.
	* testsuite/ld-mep/mep.exp: Likewise.
	* testsuite/ld-mips-elf/mips-elf-flags.exp: Likewise.
	* testsuite/ld-nios2/nios2.exp: Likewise.
	* testsuite/ld-scripts/alignof.exp: Likewise.
	* testsuite/ld-x86-64/line.exp: Likewise.
	* testsuite/ld-x86-64/x86-64.exp: Likewise.
	* testsuite/ld-scripts/log2.exp: Formatting.
	* testsuite/ld-tic6x/tic6x.exp: Report ld_link errors as a test fail.
2020-06-20 15:53:37 +09:30
..
abi-note.d [ARM] FDPIC: Update testsuite so that many tests pass with arm*-uclinuxfdpiceabi. 2018-04-25 21:13:14 +00:00
abi-note.s
all-debug-sections.d Remove run_dump_test support for objcopy as a dump program 2018-09-15 16:24:18 +09:30
all-debug-sections.s
dummy.s
gc.c
gc.exp Remove perror from ld_assemble, ld_compile and ld_nm 2020-06-20 15:53:37 +09:30
libpersonality.s
noent.d
noent.s
personality.d Consolidate run_dump_test 2018-09-15 16:56:55 +09:30
personality.s
pr11218-1.c
pr11218-2.c
pr11218.d [ARM] FDPIC: Update testsuite so that many tests pass with arm*-uclinuxfdpiceabi. 2018-04-25 21:13:14 +00:00
pr13683.c
pr13683.d Remove sh5 and sh64 support 2018-04-16 15:29:39 +09:30
pr14265.c
pr14265.d
pr14265.t
pr18223.d
pr18223.s
pr19161-1.c
pr19161-2.c
pr19161.d Remove pr19161 test hppa xfail 2017-08-23 08:58:42 +09:30
pr19167.d ld testsuite use of notarget 2018-07-10 23:58:29 +09:30
pr19167a.s
pr19167b.s
pr20022.d Revise "ld testsuite use of notarget" 2018-07-11 16:39:04 +09:30
pr20022a.s
pr20022b.s Revise "ld testsuite use of notarget" 2018-07-11 16:39:04 +09:30
pr20306.c
pr20306.d
pr20882.d GC: Also check the local debug definition section 2018-03-14 04:23:40 -07:00
pr20882a.s
pr20882b.s GC: Also check the local debug definition section 2018-03-14 04:23:40 -07:00
pr20882c.s
skip-map-discarded.d ld: Add --no-print-map-discarded option 2019-04-11 10:16:31 -07:00
skip-map-discarded.map ld: Add --no-print-map-discarded option 2019-04-11 10:16:31 -07:00
skip-map-discarded.s s12z and h8300 no-print-map-discarded fails 2019-04-19 12:41:58 +09:30
start.d ld testsuite use of notarget 2018-07-10 23:58:29 +09:30
start.s
stop.d ld testsuite use of notarget 2018-07-10 23:58:29 +09:30
stop.s Add --gc-sections test checking removal of __start/__stop symbols. 2018-01-30 22:13:43 +10:30