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

Commit b6883e30 authored by Xiao Ma's avatar Xiao Ma
Browse files

Append target SDK version info in NetlinkSocketTest.

NetlinkSocketTest#testGetNeighborsQuery seems a bit flaky on
git_sc-dev-plus-aosp branch, log the target SDK version when test
fails to better know which API introduces the flaky.

Bug: 194227933
Test: atest NetworkStackTests
Change-Id: Iac3d9b36c0b8ba166ee8a88f0e83b2f922b314d2
parent 0a9a3bf7
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);