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

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

Append target SDK version info in NetlinkSocketTest. am: b6883e30

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

Change-Id: Iec6144ad4f317bd79203e864b58d48c13b44f7d5
parents 2f2338c5 b6883e30
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);