[LTP] [RFC][PATCH 2/2] vma05.sh: Add check for core file presence
Petr Vorel
pvorel@suse.cz
Tue Sep 26 14:46:47 CEST 2023
Because we redirect gdb output, add sanity check for core file being
created.
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
Maybe this sanity check is useless. WDYT?
Kind regards,
Petr
testcases/kernel/mem/vma/vma05.sh | 2 ++
1 file changed, 2 insertions(+)
diff --git a/testcases/kernel/mem/vma/vma05.sh b/testcases/kernel/mem/vma/vma05.sh
index c9e4becdb..30b1d689a 100755
--- a/testcases/kernel/mem/vma/vma05.sh
+++ b/testcases/kernel/mem/vma/vma05.sh
@@ -54,6 +54,8 @@ vma_report_check()
rm -rf core*
{ vma05_vdso; } > /dev/null 2>&1
+ [ -f core ] || tst_brk TCONF "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
--
2.40.1
More information about the ltp
mailing list