After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 633364 - Add cancellation tests
Add cancellation tests
Status: RESOLVED FIXED
Product: libgdata
Classification: Platform
Component: General
git master
Other All
: High normal
: 0.10
Assigned To: libgdata-maint
libgdata-maint
Depends on:
Blocks:
 
 
Reported: 2010-10-28 15:02 UTC by Philip Withnall
Modified: 2011-08-20 17:14 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Philip Withnall 2010-10-28 15:02:09 UTC
The test suites need extending to test what happens when any network operation is cancelled part-way through executing.
Comment 1 Philip Withnall 2011-08-20 17:14:28 UTC
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(-)