chiark / gitweb /
test-user-util: skip most tests for nobody if synthentization is off
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 20 Feb 2018 16:13:41 +0000 (17:13 +0100)
committerSven Eden <yamakuzure@gmx.net>
Wed, 30 May 2018 05:59:01 +0000 (07:59 +0200)
commit87edbd70425139e99d8d1505de3e9116b7ff611e
treec3d9716a92637a2e96fc7880197f30ad3e213bec
parentf6b10c7beb8048e772b4d659faaf8a44d4d11190
test-user-util: skip most tests for nobody if synthentization is off

When synthetisation is turned off, there's just too many ways those tests can
go wrong. We are not interested in verifying that the db on disk is correct,
let's just skip all checks.

In the first version of this patch, I recorded if we detected a mismatch during
configuration and only skipped tests in that case, but actually it is possible
to change the host configuration between our configuration phase and running
of the tests. It's just more robust to skip always. (This is particularly true
if tests are installed.)
src/test/test-user-util.c