dmcp: Make sure the tests don't block on wait_for_key

A call to `wait_for_key()` would prevent the key sync counters from
being updated, and as a result, the test suite would stop.

Fixes: #731

Signed-off-by: Christophe de Dinechin <christophe@dinechin.org>
This commit is contained in:
Christophe de Dinechin 2024-01-16 19:37:15 +01:00
parent c75ff4a9db
commit 71a4798534

View file

@ -825,12 +825,14 @@ void wait_for_key_press()
wait_for_key_release(-1);
while (key_empty() || !key_pop())
sys_sleep();
keysync_done = keysync_sent;
}
void wait_for_key_release(int tout)
{
record(dmcp_notyet, "wait_for_key_release not implemented");
while (!key_empty() && key_pop())
sys_sleep();
keysync_done = keysync_sent;
}
int file_selection_screen(const char *title,