syscall_filter_unittest: run more tests on android
This test doesn't need access to the data files, so run it on Android.
Bug: None
Test: make check
Change-Id: I504f878ee317f582ed99ec020bd946fd02b54074
diff --git a/syscall_filter_unittest.cc b/syscall_filter_unittest.cc
index cf01d3f..8a0b19a 100644
--- a/syscall_filter_unittest.cc
+++ b/syscall_filter_unittest.cc
@@ -1201,7 +1201,7 @@
const int LABEL_ID = 0;
- FILE* policy_file = write_policy_to_pipe(policy);
+ FILE* policy_file = write_policy_to_pipe(policy);
ASSERT_NE(policy_file, nullptr);
int res = test_compile_file("policy", policy_file, head_, &arg_blocks_,
&labels_);
@@ -1805,6 +1805,8 @@
ASSERT_NE(res, 0);
}
+#endif // !__ANDROID__
+
TEST(FilterTest, error_cleanup_leak) {
struct sock_fprog actual;
std::string policy =
@@ -1821,5 +1823,3 @@
*/
ASSERT_EQ(res, -1);
}
-
-#endif // !__ANDROID__