PIM testing: remove asyncError test

The asyncError relied on calling
folks_individual_aggregator_remove_individual() incorrectly
with a NULL pointer. folks in Debian Testing just crashes
now, so we can no longer do this.
This commit is contained in:
Patrick Ohly 2014-07-24 17:15:32 +02:00
parent 8c6f770e38
commit 2371f69f97

View file

@ -539,7 +539,6 @@ void IndividualAggregator::doRunWithPersona(const boost::function<void (FolksPer
class FolksTest : public CppUnit::TestFixture {
CPPUNIT_TEST_SUITE(FolksTest);
CPPUNIT_TEST(open);
CPPUNIT_TEST(asyncError);
CPPUNIT_TEST(gvalue);
CPPUNIT_TEST_SUITE_END();
@ -671,29 +670,6 @@ private:
CPPUNIT_ASSERT(str2.get() == fixed);
}
void asyncError() {
bool done = false, failed = false;
SYNCEVO_GLIB_CALL_ASYNC(folks_individual_aggregator_remove_individual,
boost::bind(asyncCB, _1,
"folks_individual_aggregator_remove_individual",
boost::ref(failed), boost::ref(done)),
NULL, NULL);
while (!done) {
g_main_context_iteration(NULL, true);
}
// Invalid parameters are not reported!
CPPUNIT_ASSERT(!failed);
// using simpler macro
GErrorCXX gerror;
SYNCEVO_GLIB_CALL_SYNC(NULL,
gerror,
folks_individual_aggregator_remove_individual,
NULL, NULL);
// Invalid parameters are not reported!
CPPUNIT_ASSERT(!gerror);
}
static void individualSignal(std::ostringstream &out,
const char *action,
int index,