Bug 16173: db_structure.t shouldn't have a fixed number of tests
authorTomas Cohen Arazi <tomascohen@unc.edu.ar>
Wed, 30 Mar 2016 15:46:30 +0000 (12:46 -0300)
committerBrendan A Gallagher <brendan@bywatersolutions.com>
Fri, 1 Apr 2016 19:14:53 +0000 (19:14 +0000)
commit714d773900587eb1d2ac7e73ef4f1463c9805dc5
tree1be0c1b76d507530e6b006f6513e162dfee3d70f
parent42d065937627a705b813eba577f519416f356d99
 Bug 16173: db_structure.t shouldn't have a fixed number of tests

This patch makes db_structure.t more flexible regarding how many tests are run.
This is important because it would fail on each db structure change, masking potential
real problems.

To test:
- Run
  $ prove t/db_dependent/db_structure.t
=> FAIL: the number of tests ran doesn't match what is expected
- Apply the patch
- Run
  $ prove t/db_dependent/db_structure.t
=> SUCCESS: Tests count is not an issue [1]
- Sign off

[1] Right now the tests run successfuly, they might fail if a real bug is introduced
on the DB structure, in the meantime.

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
t/db_dependent/db_structure.t