Skip to content

Commit

Permalink
Fix hello_events unit tests.
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Whisonant <tim.whisonant@intel.com>
  • Loading branch information
tswhison committed Dec 19, 2022
1 parent b2b99fa commit 0a8fc20
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions samples/hello_events/hello_events.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,10 +321,11 @@ int main(int argc, char *argv[])
out_join:
pthread_join(errthr, NULL);

res1 = fpgaUnregisterEvent(fpga_device_handle, FPGA_EVENT_ERROR, eh);
ON_ERR_GOTO(res1, out_destroy_eh, "unregistering an FME event");
res2 = fpgaUnregisterEvent(fpga_device_handle, FPGA_EVENT_ERROR, eh);
ON_ERR_GOTO(res2, out_destroy_eh, "unregistering an FME event");

printf("Successfully tested Register/Unregister for FME events!\n");
if (res1 == FPGA_OK)
printf("Successfully tested Register/Unregister for FME events!\n");

out_destroy_eh:
res2 = fpgaDestroyEventHandle(&eh);
Expand Down

0 comments on commit 0a8fc20

Please sign in to comment.