Fix missing absolute path in getIpfwdV6Enable.
This works if the current directory is /, but won't work
otherwise.
Test: None
Bug: 119680185
Change-Id: Icb1ed225d224129e5cc4282239149380d1e1ce8a
diff --git a/tests/binder_test.cpp b/tests/binder_test.cpp
index 1f6e5f7..7c85880 100644
--- a/tests/binder_test.cpp
+++ b/tests/binder_test.cpp
@@ -1335,7 +1335,7 @@
}
bool getIpfwdV6Enable() {
- static const char ipv6IpfwdCmd[] = "cat proc/sys/net/ipv6/conf/all/forwarding";
+ static const char ipv6IpfwdCmd[] = "cat /proc/sys/net/ipv6/conf/all/forwarding";
std::vector<std::string> result = runCommand(ipv6IpfwdCmd);
EXPECT_TRUE(!result.empty());
int v6Enable = std::stoi(result[0]);