This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Testing of reverse debug commands
- From: Michael Snyder <msnyder at vmware dot com>
- To: gdb at sourceware dot org, Hui Zhu <teawater at gmail dot com>
- Date: Sat, 11 Jul 2009 17:40:14 -0700
- Subject: Testing of reverse debug commands
Hello all,
If you were to take a look at the expect scripts for any of the
tests I've submitted for testing reverse debugging, you would
notice a couple of FIXME comments in there, eg.:
gdb_test "record" "" "Turn on process record"
# FIXME: command ought to acknowledge, so we can test if it succeeded.
gdb_test "set exec-dir reverse" "" "set reverse execution"
# FIXME: command needs to acknowledge, so we can test if it succeeded.
This is my concern. These commands don't produce any output,
so we can't directly test whether they succeeded or not.
So I'm asking for input. Do you think we should make these
commands generate a little output, so we know they worked?
Or do we just depend on the following tests to fail if they didn't?
Cheers,
Michael