mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
Test timeout deregistration idempotency. In the current tree this test fails because ev->func is not cleared, meaning that a timeout can be removed from the list more than once, corrupting the list. It is necessary to use multiple timeouts to demonstrate this bug, because removing the very same entry twice from a list in quick succession, without modifying the list in other ways in between, doesn't actually corrupt the list. (Since removing an entry from a doubly-linked list just copies next and back from the disappearing entry into its neighbours.) Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com> Cc: Jim Fehlig <jfehlig@suse.com> Cc: Ian Campbell <Ian.Campbell@citrix.com> Acked-by: Ian Campbell <Ian.Campbell@citrix.com>
10 lines
203 B
C
10 lines
203 B
C
#ifndef TEST_TIMEDEREG_H
|
|
#define TEST_TIMEDEREG_H
|
|
|
|
#include <pthread.h>
|
|
|
|
int libxl_test_timedereg(libxl_ctx *ctx, libxl_asyncop_how *ao_how)
|
|
LIBXL_EXTERNAL_CALLERS_ONLY;
|
|
|
|
#endif /*TEST_TIMEDEREG_H*/
|