Re: How to abort a test?

Pedro Alves <[email protected]>
Newsgroups gmane.comp.gdb.patches,gmane.comp.sysutils.dejagnu.general
Message-ID <[email protected]>
On 01/14/2016 07:43 PM, Simon Marchi wrote:
> On 16-01-14 12:28 PM, Pedro Alves wrote:

> Hmm if I try to put a call to
> 
>   [remote_file target exists "/home/simark/nonexistent"]
> 
> It always returns true somehow.  When I dig, I find this error:
> 
>   {rsh to target failed for test -f /home/simark/nonexistent, rsh: Could not resolve hostname target: Name or service not known}
> 
> At this point I think the target board is not set (we are currently parsing it), so we
> probably can't do operations on it.

Yeah, sounds like it.

> 
> Anyway, the point is not to fix it for my particular case, but to make the general
> testsuite more robust.  I think I'll send a patch for Dejagnu for the "unresolved"
> solution, and see what the maintainers think.

If you're willing to do the leg work, that's fantastic, of course.

-- 
Pedro Alves
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.