google / googletest

GoogleTest - Google Testing and Mocking Framework
https://google.github.io/googletest/
BSD 3-Clause "New" or "Revised" License
34.94k stars 10.16k forks source link

feat: add EXPECT_NO_COREFILE_DEATH #4628

Open zhouronghua opened 1 month ago

zhouronghua commented 1 month ago

If we use expect_death, we really know it will coredump or raise signal, EXPECT_NO_COREFILE_DEATH is a helper for user to use expect_death but do not genreate core file. EXPECT_NO_COREFILE_DEATH depends on ::testing::ExceptionTest, who will set rlimit to suppress core file generated.

printf in main is not good idea for all test.

google-cla[bot] commented 1 month ago

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.