On Aug 21, 2014, at 6:33 PM, Tony Wang <tony.w...@arm.com> wrote: > Thanks for your reply, and I also thought of your suggestion to wrap the > _exit. The fact is that dejagnu does > the wrapper to both exit() and _exit(), but it give a higher priority to the > exit(), which means if you both > call exit() and _exit(), it will only output the return value in exit().
Hum... There is some code that scans for: *** EXIT code 0 in dejagnu in remote.exp and I suspect it selects the wrong line (if there are multiple lines). I think it should find the last line, not the first. Another fix would be fix it, however, that’s annoying as then we need a dejagnu update or we need to replace one of the functions in dejagnu, which I always hate doing. I mention it here for completeness. > Ok, I will commit with this version. Thanks.