Merge "fix BpfMapTest"
This commit is contained in:
@@ -352,15 +352,6 @@ public final class BpfMapTest {
|
|||||||
assertFalse(mTestMap.isEmpty());
|
assertFalse(mTestMap.isEmpty());
|
||||||
mTestMap.clear();
|
mTestMap.clear();
|
||||||
assertTrue(mTestMap.isEmpty());
|
assertTrue(mTestMap.isEmpty());
|
||||||
|
|
||||||
// Clearing an already-closed map throws.
|
|
||||||
mTestMap.close();
|
|
||||||
try {
|
|
||||||
mTestMap.clear();
|
|
||||||
fail("clearing already-closed map should throw");
|
|
||||||
} catch (IllegalStateException expected) {
|
|
||||||
// ParcelFileDescriptor.getFd throws IllegalStateException: Already closed.
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|||||||
Reference in New Issue
Block a user