[PATCH 18/19] ld: testsuite: Sanitize output from ld

Alan Modra amodra@gmail.com
Wed Dec 14 03:27:00 GMT 2016


On Mon, Dec 05, 2016 at 10:42:33PM +0200, Dimitar Dimitrov wrote:
> +++ b/ld/testsuite/lib/ld-lib.exp
> @@ -984,6 +984,7 @@ proc run_dump_test { name {extra_options {}} } {
>  	}
>  
>  	regsub "\n$" $comp_output "" comp_output
> +	regsub "^--" $comp_output "" comp_output
>  	if { $cmdret != 0 || $comp_output != "" || $check_ld(source) != "" } then {
>  	    set exitstat "succeeded"
>  	    if { $cmdret != 0 } { set exitstat "failed" }

I'm not sure about this one, but all your other testsuite changes look
good.  Perhaps
  send_log -- "$comp_output\n"
later would be better.

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list