Fix expected errno when connecting a UNIX socket to an inet addr.

Currently, OsTest expects that calling Libcore.os.connect() of a
UNIX socket to an IPv4 or IPv6 address results in EAFNOSUPPORT.
This is incorrect. On actual Android devices with selinux
enabled, it currently results in EBADF, and if the app were to
talk directly to the kernel without FwmarkClient, it would
result in EINVAL.

Fix the test to expect EINVAL since the other change in this
topic fixes NetdClient not to pass this sort of connection
attempt through FwmarkServer.

Bug: 124055201
Test: atest CtsLibcoreTestCases:libcore.libcore.io.OsTest
Change-Id: Ibf87403630eac48ed2e95ef783ab504e6f40ecc1
1 file changed