Make TEST_EQUAL() arguments side-effect free
commitb52238388778947f9395eeacc46fbd531b44fd01
authorOlly Betts <olly@survex.com>
Wed, 8 Nov 2017 01:35:29 +0000 (8 14:35 +1300)
committerOlly Betts <olly@survex.com>
Wed, 8 Nov 2017 01:42:19 +0000 (8 14:42 +1300)
tree086688a4fc1dd06370a22e89bc19ffc2bf67156f
parent597d7fd0020a1a61f8e4dc4d0a15d7f81b4516d1
Make TEST_EQUAL() arguments side-effect free

TEST_EQUAL() is a macro which evaluates its arguments a second time
if the test fails, to report their values.  This isn't ideal and
really ought to be addressed, but for now fix uses where the argument
has side-effect (e.g. *i++) such that the reported value should match
the tested value.
xapian-core/tests/api_anydb.cc
xapian-core/tests/api_geospatial.cc