gdb: Merge similar tests into a single test script
authorAndrew Burgess <andrew.burgess@embecosm.com>
Sat, 28 Jul 2018 19:55:04 +0000 (20:55 +0100)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Thu, 9 Aug 2018 16:17:34 +0000 (17:17 +0100)
commite5bbcd0f04911d671d0c43d57df9886c06018705
tree778a7eba4996c16b0f67dd4073c43f4d0dd4ea11
parent57285adece935b4c827d02eae10c6ae6d60c92fc
gdb: Merge similar tests into a single test script

The three test scripts:

  gdb/testsuite/gdb.base/vla-optimized-out.exp
  gdb/testsuite/gdb.base/vla-optimized-out-o3.exp
  gdb/testsuite/gdb.base/vla-optimized-out-o3-strict.exp

are all pretty similar, with differences in the compile flags used,
and some of the expected results.

Instead of maintaining 3 files, merge them into a single test script,
and use parameters to control the test behaviour.

gdb/testsuite/ChangeLog:

* gdb.base/vla-optimized-out-o3.exp: Delete.
* gdb.base/vla-optimized-out-o3-strict.exp: Delete.
* gdb.base/vla-optimized-out.exp: Extend to cover all of the
deleted tests.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/vla-optimized-out-o3-strict.exp [deleted file]
gdb/testsuite/gdb.base/vla-optimized-out-o3.exp [deleted file]
gdb/testsuite/gdb.base/vla-optimized-out.exp