Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Keith Seitz <keiths@redhat.com>
To: "gdb-patches@sourceware.org ml" <gdb-patches@sourceware.org>
Subject: [RFA/mi] Remove varobj enumeration XFAIL
Date: Fri, 18 Nov 2011 20:33:00 -0000	[thread overview]
Message-ID: <4EC6C108.9030705@redhat.com> (raw)

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

Hi,

mi{,2}-var-display.exp contains an XFAIL for the following test:

# Test: c_variable-7.51
# Desc: value of e
mi_gdb_test "-var-evaluate-expression e" \
	"\\^done,value=\"FIXME\"" \
	"eval variable e"

There is no bug filed for this (or for any of the other twenty-six 
setup_xfail calls in gdb.mi/), and I could find no history of why this 
was expected to fail. AFAICT, it has been this way from the beginning.

I suspect that this was xfailed because the test originally stopped in 
the beginning of the function, and there was no way to (easily?) get the 
value of the initialized enum.

But that all changed with this commit:
http://sourceware.org/ml/gdb-patches/2008-04/msg00007.html

This xfail no longer seems necessary, so I've attached a patch to fix 
the test case and remove the XFAIL.

Keith

testsuite/ChangeLog
2011-11-18  Keith Seitz  <keiths@redhat.com>

	* gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
	-var-evaluate-expression of an enumeration and fix expected result.
	* gdb.mi/mi2-varvdisplay.exp: Likewise.

[-- Attachment #2: varobj-enum-xfail.patch --]
[-- Type: text/x-patch, Size: 1202 bytes --]

diff --git a/gdb/testsuite/gdb.mi/mi-var-display.exp b/gdb/testsuite/gdb.mi/mi-var-display.exp
index ff27407..ad5bd23 100644
--- a/gdb/testsuite/gdb.mi/mi-var-display.exp
+++ b/gdb/testsuite/gdb.mi/mi-var-display.exp
@@ -529,13 +529,11 @@ mi_list_varobj_children anons {
 # Desc: create enum e
 mi_create_varobj e e "create local variable e"
 
-setup_xfail "*-*-*"
 # Test: c_variable-7.51
 # Desc: value of e
 mi_gdb_test "-var-evaluate-expression e" \
-	"\\^done,value=\"FIXME\"" \
+	"\\^done,value=\"bar\"" \
 	"eval variable e"
-clear_xfail "*-*-*"
 
 # Test: c_variable-7.52
 # Desc: type of e
diff --git a/gdb/testsuite/gdb.mi/mi2-var-display.exp b/gdb/testsuite/gdb.mi/mi2-var-display.exp
index 828614b..2fb0f47 100644
--- a/gdb/testsuite/gdb.mi/mi2-var-display.exp
+++ b/gdb/testsuite/gdb.mi/mi2-var-display.exp
@@ -528,13 +528,11 @@ mi_list_varobj_children anons {
 # Desc: create enum e
 mi_create_varobj e e "create local variable e"
 
-setup_xfail "*-*-*"
 # Test: c_variable-7.51
 # Desc: value of e
 mi_gdb_test "-var-evaluate-expression e" \
-	"\\^done,value=\"FIXME\"" \
+	"\\^done,value=\"bar\"" \
 	"eval variable e"
-clear_xfail "*-*-*"
 
 # Test: c_variable-7.52
 # Desc: type of e

             reply	other threads:[~2011-11-18 20:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-18 20:33 Keith Seitz [this message]
2011-11-21 19:53 ` Tom Tromey
2011-11-21 21:55   ` Keith Seitz

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=4EC6C108.9030705@redhat.com \
    --to=keiths@redhat.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