test-sync: implement send_reply()
authorDaniel Mack <daniel@zonque.org>
Tue, 21 Oct 2014 18:17:45 +0000 (20:17 +0200)
committerDaniel Mack <daniel@zonque.org>
Tue, 21 Oct 2014 20:13:25 +0000 (22:13 +0200)
commit423000bd36fabbd0dce416363cbead354f00f5ed
tree370cd1193ebc1aaaf0feadd13665523ad9c5a83e
parent9c817675e7219a46892ebc6fa18c63963e9aa544
test-sync: implement send_reply()

Implement a new helper function to reply to pending messages.

Formerly, the test abused the timeout parameter to respond, knowing
that its value will eventually end up in the kdbus message in the
same union as the cookie_reply field.

In the process of switching to absolute timeouts, however, this bites
us, so move this hack out of the way first.

Signed-off-by: Daniel Mack <daniel@zonque.org>
test/test-sync.c