GNOME Bugzilla – Bug 633364
Add cancellation tests
Last modified: 2011-08-20 17:14:28 UTC
The test suites need extending to test what happens when any network operation is cancelled part-way through executing.
commit a62cc92cab588ed89aeb771929f7a227e8518d74 Author: Philip Withnall <philip@tecnocode.co.uk> Date: Fri Aug 19 00:16:38 2011 +0100 Bug 633364 — Add cancellation tests Add a set of generic macros for writing async operation tests. The macros have inbuilt support for generating cancellation tests too, testing cancellation before the operation has started and at several time offsets afterwards. This ports the Calendar, Contacts, Documents, PicasaWeb and YouTube test suites to use the new macros, and thus gain lots of tests for cancellation. Closes: bgo#633364 gdata/tests/calendar.c | 310 +++++++---------- gdata/tests/common.c | 28 ++ gdata/tests/common.h | 204 +++++++++++ gdata/tests/contacts.c | 449 ++++++++++-------------- gdata/tests/documents.c | 337 ++++++------------ gdata/tests/picasaweb.c | 897 ++++++++++++++-------------------------------- gdata/tests/youtube.c | 607 +++++++++++++-------------------- 7 files changed, 1147 insertions(+), 1685 deletions(-)