Add a macro to check if a task that shouldn't yield actually yields.