| 6243 | } |
| 6244 | |
| 6245 | static cbm_daemon_runtime_application_session_t *app_async_session(app_async_fixture_t *fixture, |
| 6246 | cbm_daemon_client_id_t id) { |
| 6247 | cbm_daemon_runtime_application_session_t *session = app_test_open(&fixture->callbacks, id); |
| 6248 | uint8_t *empty = NULL; |
| 6249 | uint32_t empty_length = 0; |
| 6250 | bool ok = session && app_test_request(&fixture->callbacks, session, fixture->context, |
| 6251 | fixture->context_length, &empty, |
| 6252 | &empty_length) == CBM_DAEMON_RUNTIME_APPLICATION_OK; |
| 6253 | free(empty); |
| 6254 | if (!ok && session) { |
| 6255 | fixture->callbacks.session_close(fixture->callbacks.context, session); |
| 6256 | session = NULL; |
| 6257 | } |
| 6258 | return session; |
| 6259 | } |
| 6260 | |
| 6261 | /* One index_repository request on its own thread, so a call that (wrongly) |
| 6262 | * blocks for the whole index cannot hang the suite: the caller observes |
no test coverage detected