summaryrefslogtreecommitdiff
path: root/tests/lib/stack-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/stack-test.c')
-rw-r--r--tests/lib/stack-test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/stack-test.c b/tests/lib/stack-test.c
index f494c086ad..bed59aaa76 100644
--- a/tests/lib/stack-test.c
+++ b/tests/lib/stack-test.c
@@ -73,7 +73,7 @@ static void test_full_stack(void **state)
/* Expect failure when checking full stack as absence of guard value at the end of
the stack indicates stack overrun. */
- assert_int_equal(-1, checkstack(top_of_stack, 0));
+ expect_assert_failure(checkstack(top_of_stack, 0));
}
static void test_partialy_filled_stack(void **state)
@@ -115,7 +115,7 @@ static void test_incorrectly_initialized_stack(void **state)
/* Expect failure when there is no last stack guard value even if no other value was
changed. */
- assert_int_equal(-1, checkstack(top_of_stack, 0));
+ expect_assert_failure(checkstack(top_of_stack, 0));
}
int main(void)