summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandroid-build-prod (mdb) <android-build-team-robot@google.com>2020-10-30 20:04:02 +0000
committerandroid-build-prod (mdb) <android-build-team-robot@google.com>2020-10-30 20:04:02 +0000
commit4f9730b51f234cbf930b556b3b707ca098154e1d (patch)
tree24bdeb41caba47d1f837750d8915b60b8d81eacd
parentc2d0acbf3ec3dd22154b5ed1bf353403ab282968 (diff)
parent4407735953d4f981931168f0136784e7ee99103f (diff)
downloadnetd-android11-tests-release.tar.gz
Change-Id: Iade6e39f5f8e45d74650dee60546ceb530f26e49
-rw-r--r--tests/bpf_base_test.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/tests/bpf_base_test.cpp b/tests/bpf_base_test.cpp
index f28c5f81..3d3da44a 100644
--- a/tests/bpf_base_test.cpp
+++ b/tests/bpf_base_test.cpp
@@ -59,15 +59,7 @@ TEST_F(BpfBasicTest, TestCgroupMounted) {
SKIP_IF_BPF_NOT_SUPPORTED;
std::string cg2_path;
-#if 0
- // This is the correct way to fetch cg2_path, but it occasionally hits ASAN
- // problems due to memory allocated in non ASAN code being freed later by us
ASSERT_EQ(true, CgroupGetControllerPath(CGROUPV2_CONTROLLER_NAME, &cg2_path));
-#else
- ASSERT_EQ(true, CgroupGetControllerPath(CGROUPV2_CONTROLLER_NAME, nullptr));
- // Constant derived from //system/core/libprocessgroup/profiles/cgroups.json
- cg2_path = "/dev/cg2_bpf";
-#endif
ASSERT_EQ(0, access(cg2_path.c_str(), R_OK));
ASSERT_EQ(0, access((cg2_path + "/cgroup.controllers").c_str(), R_OK));
}