Merge "Don't involve debuggerd in a SIGFPE test."

This commit is contained in:
Elliott Hughes 2021-02-19 16:30:15 +00:00 committed by Gerrit Code Review
commit 8d6d795c28
1 changed files with 1 additions and 0 deletions

View File

@ -202,6 +202,7 @@ TEST(fenv, feenableexcept_fegetexcept) {
ASSERT_NE(-1, pid) << strerror(errno);
if (pid == 0) {
signal(SIGFPE, SIG_DFL); // Disable debuggerd.
feclearexcept(FE_ALL_EXCEPT);
ASSERT_EQ(0, fetestexcept(FE_ALL_EXCEPT));
ASSERT_EQ(0, feenableexcept(FE_INVALID));