mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-28 23:39:35 +08:00
* gdb.base/printcmds.exp (test_integer_literals_rejected):
Recognize more detailed error message produced by the macro expander's lexical analyzer. * lib/gdb.exp (test_print_reject): Same.
This commit is contained in:
@ -1,3 +1,10 @@
|
|||||||
|
2002-05-10 Jim Blandy <jimb@redhat.com>
|
||||||
|
|
||||||
|
* gdb.base/printcmds.exp (test_integer_literals_rejected):
|
||||||
|
Recognize more detailed error message produced by the macro
|
||||||
|
expander's lexical analyzer.
|
||||||
|
* lib/gdb.exp (test_print_reject): Same.
|
||||||
|
|
||||||
2002-05-09 Mark Kettenis <kettenis@gnu.org>
|
2002-05-09 Mark Kettenis <kettenis@gnu.org>
|
||||||
|
|
||||||
* gdb.c++/method.exp: Fix typo.
|
* gdb.c++/method.exp: Fix typo.
|
||||||
|
@ -98,8 +98,8 @@ proc test_integer_literals_rejected {} {
|
|||||||
global gdb_prompt
|
global gdb_prompt
|
||||||
|
|
||||||
test_print_reject "p 0x"
|
test_print_reject "p 0x"
|
||||||
gdb_test "p ''" "Empty character constant\\."
|
gdb_test "p ''" "(Empty character constant\\.|A character constant must contain at least one character\\.)"
|
||||||
gdb_test "p '''" "Empty character constant\\."
|
gdb_test "p '''" "(Empty character constant\\.|A character constant must contain at least one character\\.)"
|
||||||
test_print_reject "p '\\'"
|
test_print_reject "p '\\'"
|
||||||
|
|
||||||
# Note that this turns into "p '\\\'" at gdb's input.
|
# Note that this turns into "p '\\\'" at gdb's input.
|
||||||
|
@ -627,6 +627,14 @@ proc test_print_reject { args } {
|
|||||||
pass "reject $sendthis"
|
pass "reject $sendthis"
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
-re "Unmatched single quote.*$gdb_prompt $" {
|
||||||
|
pass "reject $sendthis"
|
||||||
|
return 1
|
||||||
|
}
|
||||||
|
-re "A character constant must contain at least one character.*$gdb_prompt $" {
|
||||||
|
pass "reject $sendthis"
|
||||||
|
return 1
|
||||||
|
}
|
||||||
-re "$expectthis.*$gdb_prompt $" {
|
-re "$expectthis.*$gdb_prompt $" {
|
||||||
pass "reject $sendthis"
|
pass "reject $sendthis"
|
||||||
return 1
|
return 1
|
||||||
|
Reference in New Issue
Block a user