summaryrefslogtreecommitdiff
path: root/src/test/test-async.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-02-02 14:51:31 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-02-02 20:31:18 -0500
commitc1d630d5fd3c0b3307811d51f9840652e066a0f2 (patch)
treeb46a7f6b3cd7d8e0c71b86d14d05add2e72878d7 /src/test/test-async.c
parent374c22b351e43ce4ef70ef0ad1bd1e4e520f9a28 (diff)
shared/async: simplify asynchronous_job a bit
Diffstat (limited to 'src/test/test-async.c')
-rw-r--r--src/test/test-async.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/test-async.c b/src/test/test-async.c
index 401e68551e..abd36d693c 100644
--- a/src/test/test-async.c
+++ b/src/test/test-async.c
@@ -38,7 +38,9 @@ int main(int argc, char *argv[]) {
fd = mkostemp_safe(name, O_RDWR|O_CLOEXEC);
assert_se(fd >= 0);
asynchronous_close(fd);
+
assert_se(asynchronous_job(async_func, NULL) >= 0);
+
assert_se(asynchronous_sync() >= 0);
sleep(1);