Regression: [Re: RFC: change "program exited" message]

Joel Brobecker brobecker@adacore.com
Wed Mar 9 16:29:00 GMT 2011


> While the .exp testfile does not have too straightforward way to accept the
> non-zero exit code I do not think a testfile should return with exit code
> non-zero.  But I failed to modify the .adb file such way, isn't there some
> easy way, Joel?

The non-zero status code is a consequence of a feature that I am
testing in this testcase, which is an *unhandled* exception. So
I need the exception to propagate all the way.

So, I think we have no choice but to change the testcase itself,
or enhance gdb_continue_to_end to be able to say that we expect
the inferior to terminate with a non-zero status.

I think the latter solution is probably preferable, because I'm
pretty sure I'll mis-handle bareboard, or remote/gdbserver, or
some other unusual configuration...

I can look at that tomorrow.

-- 
Joel



More information about the Gdb-patches mailing list