6399bd8181
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. |
||
---|---|---|
.. | ||
configure-sub.in | ||
maemo.am | ||
MaemoCalendarSource.cpp | ||
MaemoCalendarSource.h | ||
MaemoCalendarSourceRegister.cpp |