mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-08 10:18:13 +01:00
2dbc26dde8
Signed-off-by: Martin Milata <mmilata@redhat.com>
16 lines
404 B
Bash
Executable file
16 lines
404 B
Bash
Executable file
#!/bin/sh
|
|
|
|
TESTDIR=`pwd`
|
|
TEMPDIR=`mktemp --tmpdir -d libunwind-test-XXXXXXXXXX`
|
|
trap "rm -r -- $TEMPDIR" EXIT
|
|
|
|
# create core dump
|
|
(
|
|
cd $TEMPDIR
|
|
ulimit -c 10000
|
|
$TESTDIR/crasher $TEMPDIR/backing_files
|
|
) 2>/dev/null
|
|
COREFILE=$TEMPDIR/core*
|
|
|
|
# magic option -testcase enables checking for the specific contents of the stack
|
|
./test-coredump-unwind $COREFILE -testcase `cat $TEMPDIR/backing_files`
|