* gdb.base/printcmds.exp (test_integer_literals_rejected):
authorJim Blandy <jimb@codesourcery.com>
Fri, 10 May 2002 18:38:09 +0000 (18:38 +0000)
committerJim Blandy <jimb@codesourcery.com>
Fri, 10 May 2002 18:38:09 +0000 (18:38 +0000)
Recognize more detailed error message produced by the macro
expander's lexical analyzer.
* lib/gdb.exp (test_print_reject): Same.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/printcmds.exp
gdb/testsuite/lib/gdb.exp

index da21de4dc097f05dc38e8f2b3432264717ac0201..e6f1b6256874dc9d71968ac40826425117f2b640 100644 (file)
@@ -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>
 
        * gdb.c++/method.exp: Fix typo.
index 6c4213e3d20ffa22e7b992506d2c0b840fa38be9..124318931b612d4f592763ef84682c9008d79476 100644 (file)
@@ -98,8 +98,8 @@ proc test_integer_literals_rejected {} {
     global gdb_prompt
 
     test_print_reject "p 0x" 
-    gdb_test "p ''" "Empty character constant\\."
-    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\\.|A character constant must contain at least one character\\.)"
     test_print_reject "p '\\'"
 
     # Note that this turns into "p '\\\'" at gdb's input.
index 71d937ac81ea797119fc63b3d373ebaccbe7d50c..c41ed725473f2f004b3ae7885c00fc06382ff839 100644 (file)
@@ -627,6 +627,14 @@ proc test_print_reject { args } {
            pass "reject $sendthis"
            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 $" {
            pass "reject $sendthis"
            return 1
This page took 0.030851 seconds and 4 git commands to generate.