test/interrupt: account for race with callback
authorAaron Conole <aconole@redhat.com>
Thu, 8 Aug 2019 17:38:35 +0000 (13:38 -0400)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 13 Sep 2019 15:00:19 +0000 (17:00 +0200)
commit73afc9df00d8ba4ff58d4a7a86691ca10520d462
treeefb67fa72325818c97a2b0477f8f8502c8c310f2
parenta6069abe0288371f67fa5dffa81e4ec8b6bcf761
test/interrupt: account for race with callback

Because the eal interrupt framework can race when invoking the callback
and a separate unregister call, the test needs to accommodate the chance
that the two collide.  Do this by checking the return value of unregister
against the race-condition flag (EAGAIN).

Fixes: f1a6c22424ce ("app/test: update interrupts test")
Cc: stable@dpdk.org
Signed-off-by: Aaron Conole <aconole@redhat.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
app/test/test_interrupts.c