From bb57e4c7bd1d27c45195efd0b7a612bac831d2df Mon Sep 17 00:00:00 2001 From: Andrew Burgess Date: Tue, 28 Jul 2015 16:20:41 +0100 Subject: ld: Add file based error/warning regexp for run_dump_test. The run_dump_test mechanism supports options error and warning, which allow regexp to be specified within the test file, these regexp are matched against the stderr output from the linker. Similar dump test style functions for gas and gdb also support file based matching versions of these options; the patterns are placed into a file which the test driver then references. It is sometimes clearer, when the pattern to be matched spans multiple lines if the patterns can be placed into a separate file. This patch adds new options error_output and warning_output for the linker run_dump_test function. These new options take a filename parameter, this file is then used (with regexp_diff) to compare against the linker output. ld/testsuite/ChangeLog: * ld/ld-lib.exp (run_dump_test): Add error_output and warning_output options. --- ld/testsuite/ChangeLog | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ld/testsuite/ChangeLog') diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 512abc3..aaecbeb 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,5 +1,10 @@ 2015-08-04 Andrew Burgess + * ld/ld-lib.exp (run_dump_test): Add error_output and + warning_output options. + +2015-08-04 Andrew Burgess + * ld-undefined/require-defined-1.d: New file. * ld-undefined/require-defined-2.d: New file. * ld-undefined/require-defined-3.d: New file. -- cgit v1.1