aboutsummaryrefslogtreecommitdiff
path: root/tests/fenv_test.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2021-02-18 17:24:01 -0800
committerElliott Hughes <enh@google.com>2021-02-18 17:25:07 -0800
commit6249f9b44e01ce1be22be07494a40233dee9fa33 (patch)
tree60521f8ace46260ea493f78d2555d521979e0399 /tests/fenv_test.cpp
parent332065d57e734b65f56474d136d22d767e36cbcd (diff)
downloadbionic-6249f9b44e01ce1be22be07494a40233dee9fa33.tar.gz
Don't involve debuggerd in a SIGFPE test.
We just want to check that SIGFPE is raised, not try to "debug" this expected behavior. Bug: http://b/180605583 Test: check logs Change-Id: I11571e02c4608570e0d406adeabc36186c5bb107
Diffstat (limited to 'tests/fenv_test.cpp')
-rw-r--r--tests/fenv_test.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/fenv_test.cpp b/tests/fenv_test.cpp
index 89c7fd5c9..d49597091 100644
--- a/tests/fenv_test.cpp
+++ b/tests/fenv_test.cpp
@@ -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));