Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Jim Blandy <jimb@redhat.com>
To: gdb-patches@sources.redhat.com
Subject: RFA: recognize new error messages in test suite
Date: Fri, 10 May 2002 09:24:00 -0000	[thread overview]
Message-ID: <20020510162425.97CBD5EA11@zwingli.cygnus.com> (raw)


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.

Index: gdb/testsuite/gdb.base/printcmds.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/printcmds.exp,v
retrieving revision 1.7
diff -c -r1.7 printcmds.exp
*** gdb/testsuite/gdb.base/printcmds.exp	4 May 2002 15:18:21 -0000	1.7
--- gdb/testsuite/gdb.base/printcmds.exp	10 May 2002 16:18:20 -0000
***************
*** 98,105 ****
      global gdb_prompt
  
      test_print_reject "p 0x" 
!     gdb_test "p ''" "Empty character constant\\."
!     gdb_test "p '''" "Empty character constant\\."
      test_print_reject "p '\\'"
  
      # Note that this turns into "p '\\\'" at gdb's input.
--- 98,105 ----
      global gdb_prompt
  
      test_print_reject "p 0x" 
!     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: gdb/testsuite/lib/gdb.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/lib/gdb.exp,v
retrieving revision 1.15
diff -c -r1.15 gdb.exp
*** gdb/testsuite/lib/gdb.exp	3 Apr 2002 16:17:11 -0000	1.15
--- gdb/testsuite/lib/gdb.exp	10 May 2002 16:18:21 -0000
***************
*** 618,623 ****
--- 618,631 ----
  	    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


             reply	other threads:[~2002-05-10 16:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-10  9:24 Jim Blandy [this message]
2002-05-10  9:57 Michael Elizabeth Chastain
2002-05-10 10:48 ` Jim Blandy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020510162425.97CBD5EA11@zwingli.cygnus.com \
    --to=jimb@redhat.com \
    --cc=gdb-patches@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox