commit | 839d7d6b8e3558b92e55aa70894e13c12870e310 | [log] [tgz] |
---|---|---|
author | Lorenzo Colitti <lorenzo@google.com> | Mon Apr 03 15:37:19 2017 +0900 |
committer | Lorenzo Colitti <lorenzo@google.com> | Mon Apr 03 15:53:52 2017 +0900 |
tree | 3f9eee334d9602f9778d9637853c36882a5e4dab | |
parent | b4140197bc5606564e2a16790517d10876e43911 [diff] [blame] |
Block SIGPIPE in IptablesRestoreControllerTest. Otherwise, testRestartOnMalformedCommand fails most of the time on sailfish. Test: netd_unit_test no longer crashes Change-Id: I546950cd3f4cbaed358020f25a27b70702566e54
diff --git a/server/IptablesRestoreControllerTest.cpp b/server/IptablesRestoreControllerTest.cpp index 96394c1..515dee6 100644 --- a/server/IptablesRestoreControllerTest.cpp +++ b/server/IptablesRestoreControllerTest.cpp
@@ -45,6 +45,10 @@ int mIptablesLock = -1; std::string mChainName; + static void SetUpTestCase() { + blockSigpipe(); + } + void SetUp() { ASSERT_EQ(0, createTestChain()); }