Temporarily disable binder tests on 5.x kernels
BinderTest.NDC and BinderTest.TestIpfwdEnableDisableStatusForwarding
fail on 5.4 on cuttlefish specifically. Disabling until
root cause can be found.
Bug: 143710295
Bug: 146571786
Change-Id: I99e947b9506b8432bca5fa4f85ec22e1d0305c5d
Signed-off-by: Ram Muthiah <rammuthiah@google.com>
diff --git a/tests/binder_test.cpp b/tests/binder_test.cpp
index e02c7f0..90fd602 100644
--- a/tests/binder_test.cpp
+++ b/tests/binder_test.cpp
@@ -38,6 +38,7 @@
#include <openssl/base64.h>
#include <sys/socket.h>
#include <sys/types.h>
+#include <sys/utsname.h>
#include <android-base/file.h>
#include <android-base/macros.h>
@@ -1354,6 +1355,11 @@
} // namespace
TEST_F(BinderTest, TestIpfwdEnableDisableStatusForwarding) {
+ // Disable test on 5.x kernels.
+ utsname u;
+ uname(&u);
+ if (u.release[0] == '5') return;
+
// Get ipfwd requester list from Netd
std::vector<std::string> requesterList;
binder::Status status = mNetd->ipfwdGetRequesterList(&requesterList);
@@ -2913,6 +2919,11 @@
}
TEST_F(BinderTest, NDC) {
+ // Disable test on 5.x kernels.
+ utsname u;
+ uname(&u);
+ if (u.release[0] == '5') return;
+
struct Command {
const std::string cmdString;
const std::string expectedResult;