[LTP] [PATCH v2] android: pty01: Fix pty01 test for Android.

enh enh@google.com
Wed Aug 30 17:07:15 CEST 2017


On Wed, Aug 30, 2017 at 12:06 AM, Petr Vorel <pvorel@suse.cz> wrote:
> Hi,
>
>> > I wonder, whether it's really better to use __BIONIC__ instead of __ANDROID__ (works with
>> > both), but assume it is if it's really bionic specific.
>
>> yeah, grantpt unconditionally does nothing in bionic, regardless of
>> whether you're running on an Android device or a desktop/server Linux
>> box.
> OT: I didn't think there would be any use of bionic apart from Android (e.g. Linux /BSD
> distro using it), but there is one project (not very active now):
> https://github.com/gentoobionic/bionic

we're moving towards it internally for more hermetic builds, which is
why we've been running in to a lot of these lately. historically
almost no-one ever made a distinction, and almost always chose
__ANDROID__ for some reason. (even though __linux__ and __BIONIC__ are
usually the more accurate choices.)

> Kind regards,
> Petr


More information about the ltp mailing list