Skip to content

Commit f44fa79

Browse files
author
Vasily Gorbik
committed
s390/test_unwind: require that unwinding ended successfully
Currently unwinder test passes if unwinding results contain unwindme_func2 and unwindme_func1 functions. Now that unwinder reports success upon reaching task pt_regs, check that unwinding ended successfully in every test. Acked-by: Heiko Carstens <[email protected]> Signed-off-by: Vasily Gorbik <[email protected]>
1 parent badbf39 commit f44fa79

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

arch/s390/lib/test_unwind.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ static noinline int test_unwind(struct task_struct *task, struct pt_regs *regs,
7171
}
7272

7373
/* Check the results. */
74+
if (unwind_error(&state)) {
75+
pr_err("unwind error\n");
76+
ret = -EINVAL;
77+
}
7478
if (!seen_func2_func1) {
7579
pr_err("unwindme_func2 and unwindme_func1 not found\n");
7680
ret = -EINVAL;

0 commit comments

Comments
 (0)