summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorPhilip Withnall <withnall@endlessm.com>2019-01-26 11:38:20 +0000
committerPhilip Withnall <withnall@endlessm.com>2019-01-26 12:16:35 +0000
commiteb589e2bfee8bcde410e1bae4ec3da6b105fbcf9 (patch)
tree9f76bac425d810a95a1460795fa51fa7ff77389b /README
parent50d628d8595a52545f0484973684e2d71accc44b (diff)
tests: Ensure GCancellable is cancelled before operation is started
In the writev() tests, the handling of cancellation is tested. However, the GCancellable was cancelled after the writev_async() call was started. Depending on the implementation of the writev() vfunc, the operation could be done in a thread or in callbacks on the current thread’s main loop. If done in a separate thread, there’s a chance that enough of the write could happen before cancellation reaches that thread that the overall operation returns success with a short write. That would cause the test to fail, sometimes. Avoid that by cancelling the GCancellable before starting the writev() operation. Signed-off-by: Philip Withnall <withnall@endlessm.com> Reviewed-by: nobody
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions