This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] ld: work around pr17618 testcase failure


Some change from 2.26.1 to 2.27 causes the ld-x86-64/pr17618 test to
exhaust memory on a 32-bit host. Generally converting memory exhaustion
to "unsupported" may not be the best solution, but I couldn't think of
reasonable alternatives.

ld/
2017-02-21  Jan Beulich  <jbeulich@suse.com>

	* ld/testsuite/lib/ld-lib.exp (run_dump_test): Treat memory
	exhaustion caused by a test as unsupported.

--- 2017-02-21/ld/testsuite/lib/ld-lib.exp
+++ 2017-02-21/ld/testsuite/lib/ld-lib.exp
@@ -933,6 +933,11 @@ proc run_dump_test { name {extra_options
 	remote_file build delete "ld.tmp"
 	set cmdret [lindex $cmdret 0]
 
+	if [regexp "Memory exhausted" $comp_output] {
+	    unsupported $testname
+	    return
+	}
+
 	if { $cmdret == 0 && $run_objcopy } {
 	    set infile $objfile
 	    set objfile "tmpdir/dump1"




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]