]> granicus.if.org Git - check/commit
If there is a mismatch on the number of tests to run, fail quicker
authorbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Sat, 10 Nov 2012 22:53:35 +0000 (22:53 +0000)
committerbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Sat, 10 Nov 2012 22:53:35 +0000 (22:53 +0000)
commitcc3f484f0f1ec6ea1244471f8a3a975ca0ab778a
treea0585e8cc706e43936ecaa3261ee96261fc44fea
parent162b6ed15fa2855d79ab9d182a3638ab6dd2a0cc
If there is a mismatch on the number of tests to run, fail quicker

I have had to add several unit tests, and often times I would forget
to add an entry into either the master tests table or the line number
table. Of course, the tests would run, and several minutes later I
would find out. With this change, if there is a mismatch between the
table sizes, the test fails before starting.

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@669 64e312b2-a51f-0410-8e61-82d0ca0eb02a
tests/check_check.h
tests/check_check_master.c
tests/check_check_sub.c