* [cxx-mem-model] handle xfails in the memmodel test harness
@ 2011-08-17 23:51 Aldy Hernandez
0 siblings, 0 replies; only message in thread
From: Aldy Hernandez @ 2011-08-17 23:51 UTC (permalink / raw)
To: Andrew MacLeod, gcc-patches
With this patch we can now XFAIL tests that are expected to fail at
runtime. This is how it's used:
/* { dg-final { memmodel-gdb-test { xfail x86*-*-* } } } */
Note, that the test will still run.
This is needed for an upcoming known-to-fail test Andrew will contribute
shortly.
Committed to branch.
* lib/gcc-memmodel-gdb-test.exp (memmmodel-gdb-test): Handle
Index: lib/gcc-memmodel-gdb-test.exp
===================================================================
--- lib/gcc-memmodel-gdb-test.exp (revision 177836)
+++ lib/gcc-memmodel-gdb-test.exp (working copy)
@@ -21,9 +21,15 @@
#
# Call 'fail' if a given test printed "FAIL:", otherwise call 'pass'.
-proc memmodel-gdb-test { } {
+proc memmodel-gdb-test { args } {
if { ![isnative] || [is_remote target] } { return }
+ if { [llength $args] == 1 } {
+ switch [dg-process-target [lindex $args 0]] {
+ "F" { setup_xfail "*-*-*" }
+ }
+ }
+
# This assumes that we are three frames down from dg-test, and that
# it still stores the filename of the testcase in a local variable
"name".
# A cleaner solution would require a new DejaGnu release.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-08-17 20:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-17 23:51 [cxx-mem-model] handle xfails in the memmodel test harness Aldy Hernandez
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).