]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/testsuite/ChangeLog
Clean up gdb.gdb/selftest.exp
authorYao Qi <yao.qi@linaro.org>
Mon, 19 Dec 2016 15:00:32 +0000 (15:00 +0000)
committerYao Qi <yao.qi@linaro.org>
Mon, 19 Dec 2016 15:00:32 +0000 (15:00 +0000)
commit16e69324ec7fbe4ea12f2a0a069ad207ac8e3f97
tree186e13113f89cff18b2312726aba091f63a4d2ee
parentb25e998d0be7d7ec2a14bfdca03370155355d215
Clean up gdb.gdb/selftest.exp

I recently see the test fails like this,

(gdb) PASS: gdb.gdb/selftest.exp: step over argv initialization
list^M
487       std::vector<struct cmdarg> cmdarg_vec;^M
(gdb) FAIL: gdb.gdb/selftest.exp: unknown source line (after step over argv initialization)

step^M
std::vector<cmdarg, std::allocator<cmdarg> >::vector (this=0x7fffffffdc10) at ../../binutils-gdb/gdb/main.c:487^M
487       std::vector<struct cmdarg> cmdarg_vec;^M
(gdb) FAIL: gdb.gdb/selftest.exp: step into xmalloc call

These fails are caused by using std::vector in commit
f60ee22ea1d62f7004511ec65a3ad76890032d88.  selttest.exp should match
the source code of GDB.  It is a maintenance pain, so this patch
removes do_steps_and_nexts.

gdb/testsuite:

2016-12-19  Yao Qi  <yao.qi@linaro.org>

* gdb.gdb/selftest.exp (do_steps_and_nexts): Remove.
(test_with_self): Don't call do_steps_and_nexts, and remove
code about stepping into xmalloc.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.gdb/selftest.exp