syncevolution/src/backends/maemo
Patrick Ohly 6399bd8181 testing: cleaned up ClientTestConfig
The memset/memcpy of the embedded boost::function instances inside the
old ClientTestConfig was causing segfaults at the end of a client-test
run if compiled with optimization.

Therefore this commit turns ClientTestConfig into a proper class
containing members which initialize themselves (Bool wrapper class,
std::string), thus memset is no longer needed and used. Also added the
standard m_ prefix.

m_numItems is gone, was never set by any backend anyway and even
expected to be consistent in one test. Now CLIENT_TEST_NUM_ITEMS is
read by defNumItems() each time it is needed.

Removed "const char *" strings from method parameters. This revealed
that config.itemType (a const char *) was incorrectly passed to
insert() where the boolean "relax" parameter should have been given.
Replaced by "false" (= strict checking) even though the old code
must have run with an implicit "true" (= relaxed checking). Let's see
whether any tests fail now.
2011-09-02 09:42:19 +02:00
..
configure-sub.in Port build system to non-recursive Automake. 2011-08-30 16:38:34 +02:00
maemo.am Port build system to non-recursive Automake. 2011-08-30 16:38:34 +02:00
MaemoCalendarSource.cpp TrackingSyncSource: added isEmpty() pure virtual method (MB #7708) 2010-02-19 10:00:09 +01:00
MaemoCalendarSource.h TrackingSyncSource: added isEmpty() pure virtual method (MB #7708) 2010-02-19 10:00:09 +01:00
MaemoCalendarSourceRegister.cpp testing: cleaned up ClientTestConfig 2011-09-02 09:42:19 +02:00