aboutsummaryrefslogtreecommitdiff
path: root/libjava/testsuite
diff options
context:
space:
mode:
authorAndrew Haley <aph@littlepinkcloud.com>2008-03-04 13:34:25 +0000
committerAndrew Haley <aph@gcc.gnu.org>2008-03-04 13:34:25 +0000
commite0898f4cedf01f4f96da684d329e35805a76d32d (patch)
treeae6d082b270704c6b03ca5565fb4391a6d5b20b7 /libjava/testsuite
parent2c7c6f543937704c5ec5975e237f2ce917d79f94 (diff)
downloadgcc-e0898f4cedf01f4f96da684d329e35805a76d32d.zip
gcc-e0898f4cedf01f4f96da684d329e35805a76d32d.tar.gz
gcc-e0898f4cedf01f4f96da684d329e35805a76d32d.tar.bz2
libjava.exp (libjava_arguments): Use regexp instead of string match when checking for linux targets.
2008-03-03 Andrew Haley <aph@littlepinkcloud.com> * testsuite/lib/libjava.exp (libjava_arguments): Use regexp instead of string match when checking for linux targets. From-SVN: r132862
Diffstat (limited to 'libjava/testsuite')
-rw-r--r--libjava/testsuite/lib/libjava.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libjava/testsuite/lib/libjava.exp b/libjava/testsuite/lib/libjava.exp
index 2cec156..523c69c 100644
--- a/libjava/testsuite/lib/libjava.exp
+++ b/libjava/testsuite/lib/libjava.exp
@@ -380,7 +380,7 @@ proc libjava_arguments {{mode compile}} {
global wrapper_file wrap_compile_flags
lappend args "additional_flags=$wrap_compile_flags"
- if { [string match "linux" $target_triplet] } {
+ if { [regexp "linux" $target_triplet] } {
lappend args "additional_flags=-specs=libgcj-test.spec"
}