[OBV] Fix a regexp pattern in gdb.base/auto-connect-native-target.exp (Re: [PATCH 8/8] Allow making GDB not automatically connect to the native target.)

Message ID 538D5E05.2000807@codesourcery.com
State Committed
Headers

Commit Message

Yao Qi June 3, 2014, 5:32 a.m. UTC
  On 03/17/2014 11:23 PM, Pedro Alves wrote:
> +set test "help target native"
> +gdb_test_multiple $test $test {
> +    -re "Undefined target command.* $gdb_prompt $" {

The space before "$gdb_prompt $" looks redundant and this patch
is to remove it from the regexp pattern.

> +	set have_native 0
> +    }
> +    -re "Native process.*$gdb_prompt $" {
> +	set have_native 1
> +    }
> +}
  

Patch

diff --git a/gdb/testsuite/gdb.base/auto-connect-native-target.exp b/gdb/testsuite/gdb.base/auto-connect-native-target.exp
index ac8c79f..79febe3 100644
--- a/gdb/testsuite/gdb.base/auto-connect-native-target.exp
+++ b/gdb/testsuite/gdb.base/auto-connect-native-target.exp
@@ -27,7 +27,7 @@  set have_native 0
 
 set test "help target native"
 gdb_test_multiple $test $test {
-    -re "Undefined target command.* $gdb_prompt $" {
+    -re "Undefined target command.*$gdb_prompt $" {
 	set have_native 0
     }
     -re "Native process.*$gdb_prompt $" {