This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [commit] Tests for the target description XML parser


Daniel Jacobowitz wrote:

> Nope.  You should probably detect that and skip the remaining tests in
> that file.

Like so?

Bye,
Ulrich



ChangeLog:

	* gdb.xml/tdesc-arch.exp: Test is unsupported on target with
	just a single architecture.

Index: gdb/testsuite/gdb.xml/tdesc-arch.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.xml/tdesc-arch.exp,v
retrieving revision 1.2
diff -u -p -r1.2 tdesc-arch.exp
--- gdb/testsuite/gdb.xml/tdesc-arch.exp	8 Feb 2007 21:14:12 -0000	1.2
+++ gdb/testsuite/gdb.xml/tdesc-arch.exp	9 Mar 2007 00:01:17 -0000
@@ -32,6 +32,11 @@ gdb_test_multiple "set architecture" $ms
 	set arch2 $expect_out(2,string)
 	pass $msg
     }
+    -re "Requires an argument. Valid arguments are (\[^ \]*), auto\\.\r\n$gdb_prompt $" {
+	# If there is just one supported architecture, we can't do this test.
+	unsupported "tdesc-arch.exp"
+	return -1
+    }
 }
 
 set default_arch ""


-- 
  Dr. Ulrich Weigand
  GNU Toolchain for Linux on System z and Cell BE
  Ulrich.Weigand@de.ibm.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]