This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
Re: [PATCH] tests: run-backtrace-demangle.sh check exitcode and max number of frames.
- From: Mark Wielaard <mjw at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Sat, 18 Jan 2014 21:29:40 +0100
- Subject: Re: [PATCH] tests: run-backtrace-demangle.sh check exitcode and max number of frames.
On Sat, Jan 18, 2014 at 07:27:50PM +0100, Jan Kratochvil wrote:
> On Thu, 16 Jan 2014 09:45:51 +0100, Mark Wielaard wrote:
> > There can be more than 3 frames, but depending on the system/installed
> > glibc we might not be able to unwind fully till the end.
> > cxxfunc -> f -> main
> > Expect to see the top two and a warning that there are more frames
> > (exit code 1)
>
> I agree there should be something like ' || true' but which system cannot
> unwind 'main'? IIUC the 2 frames (and not 3 frames).
You are right. 3 frames would also work since they all come from the
main executable. I just picked 2 because the test only needs and checks
the top two, "cxxfunc" and "f", but it can also be 3.
Cheers,
Mark