Commit aec288a2 by Jeff Law Committed by Jeff Law

gcc-gdb-test.exp (gdb-test): Reorder matchers to give more consistent results.

	* lib/gcc-gdb-test.exp (gdb-test): Reorder matchers to give more
	consistent results.

From-SVN: r173595
parent 9420e113
2011-05-09 Jeff Law <law@redhat.com>
* lib/gcc-gdb-test.exp (gdb-test): Reorder matchers to give more
consistent results.
2011-05-09 Fabien Chêne <fabien@gcc.gnu.org> 2011-05-09 Fabien Chêne <fabien@gcc.gnu.org>
PR c++/20039 PR c++/20039
* g++.dg/init/pr20039.C: New. * g++.dg/init/pr20039.C: New.
......
# Copyright (C) 2009 Free Software Foundation, Inc. # Copyright (C) 2009, 2011 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify # This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by # it under the terms of the GNU General Public License as published by
...@@ -60,6 +60,12 @@ proc gdb-test { args } { ...@@ -60,6 +60,12 @@ proc gdb-test { args } {
} }
remote_expect target [timeout_value] { remote_expect target [timeout_value] {
# Too old GDB
-re "Unhandled dwarf expression|Error in sourced command file" {
unsupported "$testname"
remote_close target
return
}
-re {[\n\r]\$1 = ([^\n\r]*)[\n\r]+\$2 = ([^\n\r]*)[\n\r]} { -re {[\n\r]\$1 = ([^\n\r]*)[\n\r]+\$2 = ([^\n\r]*)[\n\r]} {
set first $expect_out(1,string) set first $expect_out(1,string)
set second $expect_out(2,string) set second $expect_out(2,string)
...@@ -72,12 +78,6 @@ proc gdb-test { args } { ...@@ -72,12 +78,6 @@ proc gdb-test { args } {
remote_close target remote_close target
return return
} }
# Too old GDB
-re "Unhandled dwarf expression|Error in sourced command file" {
unsupported "$testname"
remote_close target
return
}
timeout { timeout {
unsupported "$testname" unsupported "$testname"
remote_close target remote_close target
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment