diff options
author | Alan Modra <amodra@gmail.com> | 2014-08-12 20:27:19 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2014-08-12 20:51:11 +0930 |
commit | 2d03dd2f8df86f7c2110e7e10039a32830f80148 (patch) | |
tree | 83cdcc16bc3e4147fef1dfafd7589f5c3975e274 /ld/testsuite | |
parent | e77620a58ff6050a8f1923062262d7811f8f0083 (diff) | |
download | gdb-2d03dd2f8df86f7c2110e7e10039a32830f80148.zip gdb-2d03dd2f8df86f7c2110e7e10039a32830f80148.tar.gz gdb-2d03dd2f8df86f7c2110e7e10039a32830f80148.tar.bz2 |
Tighten test for ld plugin support
To not match spu --plugin option.
* lib/ld-lib.exp (check_plugin_api_available): Match "-plugin PLUGIN".
Diffstat (limited to 'ld/testsuite')
-rw-r--r-- | ld/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | ld/testsuite/lib/ld-lib.exp | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index bcddeac..c52203a 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2014-08-12 Alan Modra <amodra@gmail.com> + + * lib/ld-lib.exp (check_plugin_api_available): Match "-plugin PLUGIN". + 2014-08-07 H.J. Lu <hongjiu.lu@intel.com> PR ld/16746 diff --git a/ld/testsuite/lib/ld-lib.exp b/ld/testsuite/lib/ld-lib.exp index c4ce0e7..e4084e1 100644 --- a/ld/testsuite/lib/ld-lib.exp +++ b/ld/testsuite/lib/ld-lib.exp @@ -1660,7 +1660,7 @@ proc check_plugin_api_available { } { if {![info exists plugin_api_available_saved]} { # Check if the ld used by gcc supports --plugin. set ld_output [remote_exec host $ld "--help"] - if { [ string first "-plugin" $ld_output ] >= 0 } { + if { [ string first "-plugin PLUGIN" $ld_output ] >= 0 } { set plugin_api_available_saved 1 } else { set plugin_api_available_saved 0 |