summaryrefslogtreecommitdiff
path: root/annotations/generate_annotated_java_files.py
diff options
context:
space:
mode:
authorLorenzo Colitti <lorenzo@google.com>2019-02-14 01:19:20 +0900
committerLorenzo Colitti <lorenzo@google.com>2019-02-14 01:49:38 +0900
commiteb271d957de708695b3e36f4cac056451b610837 (patch)
tree6c5d3c585908f509d8492ebcd6d27415772a1312 /annotations/generate_annotated_java_files.py
parentcbda2926f997a596c7aa7cbba944c836d0bc099f (diff)
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
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions