Commit f33d8151 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

interrupt: fix race in test case

parent 2d7589e4
...@@ -97,7 +97,10 @@ static void *test_thread_cancel(void *data) ...@@ -97,7 +97,10 @@ static void *test_thread_cancel(void *data)
{ {
vlc_interrupt_t *ctx = data; vlc_interrupt_t *ctx = data;
int canc = vlc_savecancel();
test_context_simple(ctx); test_context_simple(ctx);
vlc_restorecancel(canc);
/* Test context clearing on cancellation */ /* Test context clearing on cancellation */
vlc_interrupt_set(ctx); vlc_interrupt_set(ctx);
for (;;) for (;;)
......
Markdown is supported
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