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:

> 2007-01-23  Daniel Jacobowitz  <dan@codesourcery.com>
> 
> 	* Makefile.in (ALL_SUBDIRS): Add gdb.xml.
> 	* configure: Regenerated.
> 	* configure.ac (AC_OUTPUT): Add gdb.xml/Makefile.
> 	* gdb.xml/Makefile.in, gdb.xml/tdesc-arch.exp,
> 	gdb.xml/tdesc-bogus.xml, gdb.xml/tdesc-errors.exp,
> 	gdb.xml/trivial.xml, gdb.xml/tdesc-unknown.xml: New files.
> 	* lib/gdb.exp (gdb_skip_xml_test): New function.

> Index: src/gdb/testsuite/gdb.xml/tdesc-arch.exp
> ===================================================================

> +# Find some valid architectures - we just need legitimate values
> +# to put in our <architecture> elements.
> +set arch1 ""
> +set arch2 ""
> +set msg "read valid architectures"
> +gdb_test_multiple "set architecture" $msg {
> +    -re "Requires an argument. Valid arguments are (\[^ \]*), (\[^ \]*), .*auto\\.\r\n$gdb_prompt $" {
> +	set arch1 $expect_out(1,string)
> +	set arch2 $expect_out(2,string)
> +	pass $msg
> +    }
> +}

This causes a FAIL on spu, since the target supports only a
single architecture, and the pattern requires two.  This
probably was not the intention?

Bye,
Ulrich

-- 
  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]