Skip to content
Snippets Groups Projects
Commit a6a8d7b6 authored by Marek Vavrusa's avatar Marek Vavrusa
Browse files

Fixed unit tests after dt_activate/dt_cancel change of semantics.

Both do not interrupt any I/O, just change thread state.
This is because it is not required in most cases unless you use
infinite timeouts in I/O ops.
parent 9a34ccd7
Branches
Tags
No related merge requests found
......@@ -107,7 +107,9 @@ static inline int dt_test_repurpose(dt_unit_t *unit, int id)
/*! \brief Cancel single thread. */
static inline int dt_test_cancel(dt_unit_t *unit, int id)
{
return dt_cancel(unit->threads[id]) == 0;
int ret = dt_cancel(unit->threads[id]);
ret |= dt_signalize(unit->threads[id], SIGALRM);
return ret == 0; /* Both succeeded. */
}
/*! \brief Reanimate dead threads. */
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment