google / googletest

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

EXPECT_EXIT、ASSERT_EXITにてstderrの取得のため以下を実行するとシグナル6で異常終了する。 #4506

Closed ikis-ikis closed 6 months ago

ikis-ikis commented 6 months ago

Describe the issue

1.8.x(1.1.0)で、EXPECT_EXIT、ASSERT_EXITにてstderrの取得のため以下を実行するとシグナル6で異常終了する。

Steps to reproduce the problem

testing::internal::CaptureStderr(); EXPECT_EXIT(Function(...), ::testing::ExitedWithCode(0), ""); // signal 6 EXPECT_STREQ("", testing::internal::GetCapturedStderr().c_str());

What version of GoogleTest are you using?

1.10.0

What operating system and version are you using?

ScientificLinux 7.8

What compiler and version are you using?

gcc 4.8.5

What build system are you using?

make

Additional context

No response

derekmauro commented 6 months ago

Unintelligible report with an unsupported compiler and GoogleTest version.