EXPECT_DEATH_IF_SUPPORTED won't work on most platforms.

NEW
Unassigned

Status

Testing
General
a year ago
a year ago

People

(Reporter: hiro, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

a year ago
I am writing a gtest with EXPECT_DEATH_IF_SUPPORTED, but it won't work on most platforms.

https://treeherder.mozilla.org/#/jobs?repo=try&revision=b87978ad4d92371a76543de243f9f13a840555c2

It can be worked locally on a linux box, but won't work on another linux box.  I don't know why.

A stack trace:

#0  0x00007f9976eccdfd in nanosleep () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f9976eccc94 in __sleep (seconds=0) at ../sysdeps/unix/sysv/linux/sleep.c:137
#2  0x00007f996b648c3f in ah_crap_handler (signum=11) at /home/ikezoe/mozilla-central/toolkit/xre/nsSigHandlers.cpp:103
#3  0x00007f996c3340fa in AsmJSFaultHandler (signum=<optimized out>, info=0x7ffc9df33570, context=0x7ffc9df33440) at /home/ikezoe/mozilla-central/js/src/asmjs/WasmSignalHandlers.cpp:1173
#4  <signal handler called>
#5  clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:63
#6  0x00007f9969042443 in ExecDeathTestFork (close_fd=<optimized out>, argv=<optimized out>) at /home/ikezoe/mozilla-central/testing/gtest/gtest/src/gtest-death-test.cc:970
#7  testing::internal::ExecDeathTest::AssumeRole (this=0x7f996159c240) at /home/ikezoe/mozilla-central/testing/gtest/gtest/src/gtest-death-test.cc:1029
#8  0x00007f9969002f10 in StickyTimeDurationAssertions_Main_Test::TestBody (this=<optimized out>) at /home/ikezoe/mozilla-central/xpcom/tests/gtest/TestStickyTimeDuration.cpp:166
#9  0x00007f99690410b8 in testing::Test::Run (this=this@entry=0x7f9961833460) at /home/ikezoe/mozilla-central/testing/gtest/gtest/src/gtest.cc:2162
You need to log in before you can comment on or make changes to this bug.