Fix a regexp pattern in gdb.base/auto-connect-native-target.exp
authorYao Qi <yao@codesourcery.com>
Tue, 3 Jun 2014 05:20:56 +0000 (13:20 +0800)
committerYao Qi <yao@codesourcery.com>
Wed, 4 Jun 2014 05:30:44 +0000 (13:30 +0800)
When I test gdb head (for 7.8 release) on arm-none-eabi, I find the
following this failure, which are caused by the improper regexp
pattern in the test.

(gdb) help target native^M
Undefined target command: "native".  Try "help target".^M
(gdb) FAIL: gdb.base/auto-connect-native-target.exp: help target native

The space in front of "$gdb_prompt $" looks redundant, and this patch
is to remove it from the regexp pattern.

gdb/testsuite:

2014-06-04  Yao Qi  <yao@codesourcery.com>

* gdb.base/auto-connect-native-target.exp: Remove redundant
space from the regexp pattern.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/auto-connect-native-target.exp

index d8b973701f6b4d9dddb7e81fac1f74779e2ada35..e15237c36679fcc6557eab81d9946da9c54711bb 100644 (file)
@@ -1,3 +1,8 @@
+2014-06-04  Yao Qi  <yao@codesourcery.com>
+
+       * gdb.base/auto-connect-native-target.exp: Remove redundant
+       space from the regexp pattern.
+
 2014-06-04  Yao Qi  <yao@codesourcery.com>
 
        * gdb.base/default.exp: Replace "child" with "native" in
index ac8c79fbf5701e97e07a9b5e2b8dbe7196766dea..79febe3dc09d90f2f346717041456dcb9e2327c7 100644 (file)
@@ -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 $" {
This page took 0.03884 seconds and 4 git commands to generate.