Re: Question re: testsuite, "isnative", "is_remote" etc.

Michael Snyder
2011-01-12T23:23:48Z

Joel Brobecker wrote:
>> I see a lot of tests that use "if not isnative", but that surely
>> isn't right, since that test only compares the host and target board
>> names.
>
> It seems like a dumb question, but why isn't this right?
>

Because host might be the same as target, and I still might be a
remote board, eg. if I'm using gdbserver.

I think when the "isnative" test was written, this scenario was not
realistic. There were no embedded boards capable of running linux.

Nowdays, "isnative" is not the opposite of "isremote". You can be both.