wvtest.cc: consider it an error if 0 tests were run.
commitf63b44e9e8e02a386e28f4c066b44c72290b0758
authorAvery Pennarun <apenwarr@gmail.com>
Tue, 21 Oct 2008 01:04:31 +0000 (20 21:04 -0400)
committerAvery Pennarun <apenwarr@gmail.com>
Tue, 21 Oct 2008 01:04:31 +0000 (20 21:04 -0400)
tree849d44696cc8c053807fea8cd905b2ade7eaacec
parent06991d81fdb5a0f9d5f0098628765df65fc1d546
wvtest.cc: consider it an error if 0 tests were run.

When there's a linker problem of some sort, you might end up linking in
wvtestmain without any actual test programs, and 'make test' will succeed
because no tests failed.  But that's obviously not what you really wanted,
because no tests *passed* either.  We add a check at the end of run_all() to
ensure that at least one test was run; if not, we return a failure code.

versaplexd had this problem for a while, and I'd rather not ever see it
again.
utils/wvtest.cc