gdb.base/watch-bitfields.exp: Improve test
authorSergio Durigan Junior <sergiodj@redhat.com>
Tue, 16 Sep 2014 16:55:20 +0000 (17:55 +0100)
committerPedro Alves <palves@redhat.com>
Tue, 16 Sep 2014 16:55:21 +0000 (17:55 +0100)
commit91c190590ab3de6d214bcf307240b4ac291f697d
treeeaf5fb46874d5e5d9dec96613d441e0ce28f390e
parentbb9d5f81c36ecc61e3d4a70ce7e41348c8b12fef
gdb.base/watch-bitfields.exp: Improve test

Make test messages unique and a couple other tweaks.

gdb/testsuite/
2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
    Pedro Alves  <palves@redhat.com>

* gdb.base/watch-bitfields.exp: Pass string other than test file
name to prepare_for_testing.
(watch): New procedure.
(expect_watchpoint): Use with_test_prefix.
(top level): Factor out tests to ...
(test_watch_location, test_regular_watch): ... these new
procedures, and use with_test_prefix and gdb_continue_to_end.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/watch-bitfields.exp