-var-create testsuite updates
Nick Roberts
nickrob@snap.net.nz
Sun Feb 11 21:43:00 GMT 2007
> > (Groan) I picked up the tests which were designed to fail but changed the
> > others by autopilot. I'll work my way through the changes to work out how many
> > others we should have kept and submit a new patch.
>
> Thanks a lot! I didn't want to actually ask you to do this, since it's
> a pile of grunt work, but it would certainly be nice to have them back.
>
> I only noticed because I had a few patches which changed long to
> long( int)? to support another compiler, and they no longer applied.
Some tests are explicitly testing -var-create e.g mi-var-cmd.exp, others
might not be but still provide a handy check on the output e.g
*** gdb.mi/mi-var-child.exp
# Test: c_variable-4.2
# Desc: create variable "struct_declarations"
mi_gdb_test "-var-create struct_declarations * struct_declarations" \
"\\^done,name=\"struct_declarations\",numchild=\"11\",type=\"struct _struct_decl\"" \
"create local variable struct_declarations"
I don't really like mi_create_varobj as it removes checks on type, number of
children etc. How about if I revert all my changes which use mi_create_varobj
and just add value=\".*\" to the regexp in each mi_gdb_test for -var-create?
--
Nick http://www.inet.net.nz/~nickrob
More information about the Gdb-patches
mailing list