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:54:01 +0000 (07:54 +0200)
commit047165230c9a4264139ad59c434c441fdf9fbc87
tree7ddac6d8d93b38588555ac08032b9ad14ae6311e
parent329169976b90de246c1c5318f10444b19dd6a7fa
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.)

(cherry picked from commit 7559b2da10b1513849f22312d09a2381569b4f06)
src/test/test-user-util.c