X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Ftest%2Ftest-async.c;h=abd36d693cd949108d57e0494d417f80cf1b3350;hp=401e68551e101904dae92fd23d88bb13d3da3581;hb=c1d630d5fd3c0b3307811d51f9840652e066a0f2;hpb=374c22b351e43ce4ef70ef0ad1bd1e4e520f9a28 diff --git a/src/test/test-async.c b/src/test/test-async.c index 401e68551..abd36d693 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);