Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] gnu_vector.exp: Respect `should_kfail' for PR8549
@ 2016-01-19 16:33 Andreas Arnez
  2016-01-19 17:33 ` Yao Qi
  0 siblings, 1 reply; 4+ messages in thread
From: Andreas Arnez @ 2016-01-19 16:33 UTC (permalink / raw)
  To: gdb-patches; +Cc: Yao Qi

The gnu_vector test case yields a new FAIL on s390x:

  FAIL: gdb.base/gnu_vector.exp: verify vector return value

It was introduced by commit 77ae9c1933b50 "gdb.base/gnu_vector.exp:
Don't test output from the inferior".  That commit dropped the special
handling for GDB's inability (on some targets) to set the return value.

This change re-establishes the logic from before, converting the above
FAIL to a KFAIL (PRMS gdb/8549).

gdb/testsuite/ChangeLog:

	* gdb.base/gnu_vector.exp: Re-establish handling for should_kfail
	when GDB can not set the vector return value.
---
 gdb/testsuite/gdb.base/gnu_vector.exp | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/gdb/testsuite/gdb.base/gnu_vector.exp b/gdb/testsuite/gdb.base/gnu_vector.exp
index 6414afd..127c0b7 100644
--- a/gdb/testsuite/gdb.base/gnu_vector.exp
+++ b/gdb/testsuite/gdb.base/gnu_vector.exp
@@ -240,4 +240,16 @@ gdb_test_multiple "return (int4) \{4, 2, 7, 6\}" $test {
 }
 
 gdb_test "next" ""
-gdb_test "p res" "\\{4, 2, 7, 6\\}.*" "verify vector return value"
+set test "verify vector return value"
+gdb_test_multiple "p res" $test {
+    -re ".*= \\{4, 2, 7, 6\\}\r\n.*$gdb_prompt $" {
+	pass $test
+    }
+    -re ".*= \\{10, 20, 48, 72\\}\r\n.*$gdb_prompt $" {
+	if { $should_kfail } {
+	    kfail "gdb/8549" $test
+	} else {
+	    fail $test
+	}
+    }
+}
-- 
2.5.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-01-20  9:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-19 16:33 [PATCH] gnu_vector.exp: Respect `should_kfail' for PR8549 Andreas Arnez
2016-01-19 17:33 ` Yao Qi
2016-01-19 18:46   ` Andreas Arnez
2016-01-20  9:32     ` Yao Qi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox