Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <heiko.carstens@de.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>

+4
+4
arch/s390/lib/test_unwind.c
··· 71 71 } 72 72 73 73 /* Check the results. */ 74 + if (unwind_error(&state)) { 75 + pr_err("unwind error\n"); 76 + ret = -EINVAL; 77 + } 74 78 if (!seen_func2_func1) { 75 79 pr_err("unwindme_func2 and unwindme_func1 not found\n"); 76 80 ret = -EINVAL;