[PATCH] tests: run-backtrace-demangle.sh check exitcode and max number of frames.

Mark Wielaard mjw at redhat.com
Sat Jan 18 20:29:40 UTC 2014


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


More information about the elfutils-devel mailing list