On Wed, 12 Mar 2025, Jakub Jelinek wrote: > On Tue, Mar 11, 2025 at 10:06:27PM -0500, Robert Dubner wrote:
> On Linux at least when not cross-compiling, exit(1) (or this > STOP RUN ERROR 1) will work as well, I believe the reason is for some > bare metal targets which just don't propagate return value from main or > exit back to the dejagnu testing framework. A refresh on those bits (read: I revisited /usr/share/dejagnu/testglue.c). The dejagnu testglue.c propagates exit(1) just fine, it'll cause writing "*** EXIT CODE 1\n" to fileno 1 before actually exiting. (I'll propagate the N in exit(N), not just 1.) > Does COBOL have something that is implemented as call to abort()? That'll cause writing "*** EXIT CODE 4242\n" to fileno 1. All handled by dejagnu and the GNU linker "--wrap" option. brgds, H-P /Maintainer of one such target