aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorCarl Love <cel@us.ibm.com>2021-10-20 00:02:09 +0000
committerCarl Love <cel@us.ibm.com>2021-10-21 13:54:09 -0500
commit21a27fb021ad935b25da9f8f97ed4f7d70499c41 (patch)
tree0aac2590561ac7ba90f89f576878d6ab0b6cfb1d /gdb
parentcdeebaab92676c3e433f1d225b304c78ba274fe1 (diff)
downloadgdb-21a27fb021ad935b25da9f8f97ed4f7d70499c41.zip
gdb-21a27fb021ad935b25da9f8f97ed4f7d70499c41.tar.gz
gdb-21a27fb021ad935b25da9f8f97ed4f7d70499c41.tar.bz2
Fixes for gdb.mi/mi-break.exp
Update the expected pattern for two of the tests. Matching pattern \" doesn't work. Use .* to match the \* pattern.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/gdb.mi/mi-break.exp8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/testsuite/gdb.mi/mi-break.exp b/gdb/testsuite/gdb.mi/mi-break.exp
index 86916c4..b729091 100644
--- a/gdb/testsuite/gdb.mi/mi-break.exp
+++ b/gdb/testsuite/gdb.mi/mi-break.exp
@@ -389,7 +389,7 @@ proc_with_prefix test_explicit_breakpoints {} {
# linespecs.
mi_gdb_test \
"-break-insert -c \"foo == 3\" --source $srcfile --function main --label label" \
- ".*No symbol \"foo\" in current context.*"
+ ".*No label .*label.* defined in function .*main.*"
mi_gdb_test \
"-break-insert --source foobar.c --line 3" \
@@ -397,15 +397,15 @@ proc_with_prefix test_explicit_breakpoints {} {
mi_gdb_test \
"-break-insert --source $srcfile --function foobar" \
- ".*Function \"foobar\" not defined in \"$srcfile\".*"
+ ".*Function .*foobar.* not defined in .*$srcfile.*"
mi_gdb_test \
"-break-insert --source $srcfile --function main --label foobar" \
- ".*No label \"foobar\" defined in function \"main\".*"
+ ".*No label .*foobar.* defined in function .*main.*"
mi_gdb_test \
"-break-insert --source $srcfile" \
- ".*Source filename requires function, label, or line offset.*"
+ ".*-break-insert: --source option requires --function, --label, or --line.*"
}
# Test forcing an invalid condition.