GPU Memory: update unittest to reduce flakiness
bpf::setrlimitForTest is not a requirement but helping to reserve enough
memory on cloud Android instance for passing bpf related tests. Now the
errno has been refactored to tracked inside that API. This change just
removes the check in this unittest because failing to set the new limit
doesn't necessarily lead to the actual test case failures.
Bug: 165604786
Test: GpuMemTest
Change-Id: Ibdf8c2c5170bcfd5deb3b461eec8962c4a28954b
Merged-In: Ibdf8c2c5170bcfd5deb3b461eec8962c4a28954b
diff --git a/services/gpuservice/tests/unittests/GpuMemTest.cpp b/services/gpuservice/tests/unittests/GpuMemTest.cpp
index 45e8367..c5f8859 100644
--- a/services/gpuservice/tests/unittests/GpuMemTest.cpp
+++ b/services/gpuservice/tests/unittests/GpuMemTest.cpp
@@ -60,7 +60,7 @@
void SetUp() override {
SKIP_IF_BPF_NOT_SUPPORTED;
- ASSERT_EQ(0, bpf::setrlimitForTest());
+ bpf::setrlimitForTest();
mGpuMem = std::make_unique<GpuMem>();
mTestableGpuMem = TestableGpuMem(mGpuMem.get());