Commit Graph

6 Commits

Author SHA1 Message Date
Colin Watson
139159cfd1 unit: Fix test failures with glib 2.39.0
glib 2.39.0 made this change:

   - g_source_remove() will now throw a critical in the case that you
     try to remove a non-existent source.  We expect that there is some
     code in the wild that will fall afoul of this new critical but
     considering that we now reuse source IDs, this code is already
     broken and should probably be fixed.

This patch fixes the test suite to keep better track of whether sources have
already been removed and avoid double-removals.
2014-01-06 21:27:31 +02:00
Luiz Augusto von Dentz
52b3354422 gobex: Fix unit test for PUT request followed by ABORT
gobex was actually used to respond not to request so the test is
renamed to test_stream_put_rsp_abort and a new test is created using
g_obex_put_req to initiate the request and g_obex_cancel_transfer to
abort it.
2012-12-04 22:22:06 +01:00
Luiz Augusto von Dentz
b9794defb8 gobex: Add random put request test 2012-12-04 22:22:02 +01:00
Johan Hedberg
b1d071bd5c gobex: Refactor common unit test functions to util.c 2012-12-04 22:22:00 +01:00
Johan Hedberg
33324a068a gobex: Move more unit test helpers to util.c 2012-12-04 22:22:00 +01:00
Johan Hedberg
d455694af2 gobex: Split unit tests into separate modules 2012-12-04 22:21:57 +01:00