bpf_base_test: fix cgroup2 hardcoded path
the path for cgroup2 was moved to its canonical position by
https://r.android.com/c/1324649/5. Move the hardcoded equivalent to the
same path.
Test: presumit tests pass
Bug: 154548692
Change-Id: I50f7a2385b7de88818ac60b0bcd6b92d711e6e16
Merged-In: I50f7a2385b7de88818ac60b0bcd6b92d711e6e16
diff --git a/tests/bpf_base_test.cpp b/tests/bpf_base_test.cpp
index f28c5f8..f5d989e 100644
--- a/tests/bpf_base_test.cpp
+++ b/tests/bpf_base_test.cpp
@@ -66,7 +66,7 @@
#else
ASSERT_EQ(true, CgroupGetControllerPath(CGROUPV2_CONTROLLER_NAME, nullptr));
// Constant derived from //system/core/libprocessgroup/profiles/cgroups.json
- cg2_path = "/dev/cg2_bpf";
+ cg2_path = "/sys/fs/cgroup";
#endif
ASSERT_EQ(0, access(cg2_path.c_str(), R_OK));
ASSERT_EQ(0, access((cg2_path + "/cgroup.controllers").c_str(), R_OK));