Skip to content

Commit

Permalink
add unit test for core_abort()
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikwidlund committed Oct 8, 2020
1 parent b2a6a93 commit 0ee26ee
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@ static void basic(__attribute__ ((unused)) void **state)
core_loop(NULL);
core_destruct(NULL);
assert_int_equal(n, 1);

/* abort */
core_construct(NULL);
core_abort(NULL);
core_loop(NULL);
core_destruct(NULL);
}

static void error(__attribute__ ((unused)) void **state)
Expand Down

0 comments on commit 0ee26ee

Please sign in to comment.