Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andrew STUBBS <andrew.stubbs@st.com>
To: GDB Patches <gdb-patches@sourceware.org>
Subject: [PATCH] Fix ifelse.exp
Date: Wed, 19 Jul 2006 10:20:00 -0000	[thread overview]
Message-ID: <44BE0182.1050703@st.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 162 bytes --]

This patch ought to solve the recent problems with ifelse.exp.

I have tested it with and without the problem it tests for.

Sorry for the inconvenience.

Andrew

[-- Attachment #2: ifelse-update.patch --]
[-- Type: text/plain, Size: 1877 bytes --]

2006-07-19  Andrew Stubbs  <andrew.stubbs@st.com>

	* gdb.base/ifelse.exp: Remove troublesome 'got here' messages.

Index: src/gdb/testsuite/gdb.base/ifelse.exp
===================================================================
--- src.orig/gdb/testsuite/gdb.base/ifelse.exp	2006-07-07 13:50:15.000000000 +0100
+++ src/gdb/testsuite/gdb.base/ifelse.exp	2006-07-19 10:49:14.000000000 +0100
@@ -30,8 +30,8 @@ gdb_start
 
 #    with true condition
 set message "if 1 with empty body"
-gdb_test_multiple "if 1\nend\necho got here\\n" $message {
-    -re ".*got here.*$gdb_prompt $" {pass $message}
+gdb_test_multiple "if 1\nend" $message {
+    -re "$gdb_prompt $" {pass $message}
     eof {
 	fail "$message (crashed)"
 	gdb_exit
@@ -41,8 +41,8 @@ gdb_test_multiple "if 1\nend\necho got h
 
 #    with false condition
 set message "if 0 with empty body"
-gdb_test_multiple "if 0\nend\necho got here\\n" $message {
-    -re ".*got here.*$gdb_prompt $" {pass $message}
+gdb_test_multiple "if 0\nend" $message {
+    -re "$gdb_prompt $" {pass $message}
     eof {
 	fail "$message (crashed)"
 	gdb_exit
@@ -62,8 +62,8 @@ gdb_test "if 1\necho true\\n\nelse\necho
 
 #    with true condition
 set message "if 1 .. else with empty body"
-gdb_test_multiple "if 1\nelse\nend\necho got here\\n" $message {
-    -re ".*got here.*$gdb_prompt $" {pass $message}
+gdb_test_multiple "if 1\nelse\nend" $message {
+    -re "$gdb_prompt $" {pass $message}
     eof {
 	fail "$message (crashed)"
 	gdb_exit
@@ -76,8 +76,8 @@ gdb_test "if 1\necho true\\n\nelse\necho
 
 #    with false condition
 set message "if 0 .. else with empty body"
-gdb_test_multiple "if 0\nelse\nend\necho got here\\n" $message {
-    -re ".*got here.*$gdb_prompt $" {pass $message}
+gdb_test_multiple "if 0\nelse\nend" $message {
+    -re "$gdb_prompt $" {pass $message}
     eof {
 	fail "$message (crashed)"
 	gdb_exit

             reply	other threads:[~2006-07-19 10:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-19 10:20 Andrew STUBBS [this message]
2006-07-19 11:54 ` Mark Kettenis
2006-07-19 13:07   ` Andrew STUBBS

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=44BE0182.1050703@st.com \
    --to=andrew.stubbs@st.com \
    --cc=gdb-patches@sourceware.org \
    /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