Skip to content

Commit

Permalink
vma05.sh: Add check for core file presence
Browse files Browse the repository at this point in the history
Because we redirect gdb output, add sanity check for core file being
created.

Link: https://lore.kernel.org/ltp/[email protected]/
Reviewed-by: Cyril Hrubis <[email protected]>
Signed-off-by: Petr Vorel <[email protected]>
  • Loading branch information
pevik committed Oct 26, 2023
1 parent c18b982 commit 63529ee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions testcases/kernel/mem/vma/vma05.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ vma_report_check()

rm -rf core*
{ vma05_vdso; } > /dev/null 2>&1
[ -f core ] || tst_brk TBROK "missing core file"

TRACE=$(gdb -silent -ex="thread apply all backtrace" -ex="quit"\
vma05_vdso ./core* 2> /dev/null)
if echo "$TRACE" | grep -qF "??"; then
Expand Down

0 comments on commit 63529ee

Please sign in to comment.