This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 7/7] [python] API for macros: Add tests.
>>>>> "matt" == matt rice <ratmice@gmail.com> writes:
matt> 2011-08-23 Matt Rice <ratmice@gmail.com>
matt> PR python/10807
matt> * gdb.python/py-macro.exp: Ditto.
matt> * gdb.python/py-macro.c: New file.
matt> +if { [prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} $options] } {
matt> + untested ${testfile}.exp
matt> + return -1
matt> +}
matt> +
matt> +# Start with a fresh gdb.
matt> +gdb_exit
matt> +gdb_start
matt> +gdb_reinitialize_dir $srcdir/$subdir
matt> +gdb_load ${binfile}
This stanza isn't needed -- prepare_for_testing calls clean_restart,
which does all this.
Tom