Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e2fe3c47 authored by Xiao Ma's avatar Xiao Ma Committed by Automerger Merge Worker
Browse files

Append target SDK version info in NetlinkSocketTest. am: b6883e30 am: 81f39a08 am: 3691d6e1

Original change: https://android-review.googlesource.com/c/platform/packages/modules/NetworkStack/+/1778565

Change-Id: I1390b14099d8680b8c12d967c08184bc6145197e
parents 128be0e2 3691d6e1
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -88,7 +88,8 @@ public class NetlinkSocketTest {
        if (SdkLevel.isAtLeastT() && targetSdk > 31) {
            try {
                NetlinkSocket.sendMessage(fd, req, 0, req.length, TIMEOUT);
                fail("RTM_GETNEIGH is not allowed for apps targeting SDK > 31 on T+ platforms");
                fail("RTM_GETNEIGH is not allowed for apps targeting SDK > 31 on T+ platforms,"
                        + " target SDK version: " + targetSdk);
            } catch (ErrnoException e) {
                // Expected
                assertEquals(e.errno, EACCES);