summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2020-07-02 01:14:33 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2020-07-02 01:14:33 +0000
commit5e830ab8803c1f5767f27584f622fdddefbafa58 (patch)
tree5b50f1d3e8c8af57aca072e08c1fc8cef2d4b66f
parenta7c3a9396e4757cc0039063fbbce22127a8bb188 (diff)
parent216e36fadd606306117e678bcc5a70326f02e336 (diff)
downloadplatform_test_vts-testcase_kernel-android11-release.tar.gz
platform_test_vts-testcase_kernel-android11-release.tar.bz2
platform_test_vts-testcase_kernel-android11-release.zip
Change-Id: I365eee70235426821340e2bae52fbda46e86f6f9
-rw-r--r--api/bpf_native_test/BpfTest.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/api/bpf_native_test/BpfTest.cpp b/api/bpf_native_test/BpfTest.cpp
index 4ab69b1e..7e104a38 100644
--- a/api/bpf_native_test/BpfTest.cpp
+++ b/api/bpf_native_test/BpfTest.cpp
@@ -48,6 +48,7 @@ namespace android {
TEST(BpfTest, bpfMapPinTest) {
SKIP_IF_BPF_NOT_SUPPORTED;
+ EXPECT_EQ(0, setrlimitForTest());
const char* bpfMapPath = "/sys/fs/bpf/testMap";
int ret = access(bpfMapPath, F_OK);
if (!ret) {
@@ -126,6 +127,8 @@ class BpfRaceTest : public ::testing::Test {
void SetUp() {
SKIP_IF_BPF_NOT_SUPPORTED;
+
+ EXPECT_EQ(0, setrlimitForTest());
int ret = access(TEST_PROG_PATH, R_OK);
// Always create a new program and remove the pinned program after program
// loading is done.