diff options
author | jln@chromium.org <jln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-31 21:07:38 +0000 |
---|---|---|
committer | jln@chromium.org <jln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-31 21:07:38 +0000 |
commit | 2d2e13319d8aa657a59c3b7c7cdfd10511e2cb31 (patch) | |
tree | 7f9c3d1f502534e83495aeeebe38ebc6e2d600d2 /sandbox | |
parent | 226e49ed63778fd1b21ef7eb8df4083ca15cd225 (diff) | |
download | chromium_src-2d2e13319d8aa657a59c3b7c7cdfd10511e2cb31.zip chromium_src-2d2e13319d8aa657a59c3b7c7cdfd10511e2cb31.tar.gz chromium_src-2d2e13319d8aa657a59c3b7c7cdfd10511e2cb31.tar.bz2 |
Linux sandbox: more verbose test failures
Restore printing the stderr of the dead process in death tests
even if the exit code is unexpected.
R=mdempsky@chromium.org
Review URL: https://codereview.chromium.org/438703002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@286891 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sandbox')
-rw-r--r-- | sandbox/linux/tests/unit_tests.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sandbox/linux/tests/unit_tests.cc b/sandbox/linux/tests/unit_tests.cc index 211b5e4..25b6dc6 100644 --- a/sandbox/linux/tests/unit_tests.cc +++ b/sandbox/linux/tests/unit_tests.cc @@ -256,7 +256,8 @@ void UnitTests::DeathMessage(int status, const char* expected_msg = static_cast<const char*>(aux); bool subprocess_terminated_normally = WIFEXITED(status); - ASSERT_TRUE(subprocess_terminated_normally) << status; + ASSERT_TRUE(subprocess_terminated_normally) << "Exit status: " << status + << " " << details; int subprocess_exit_status = WEXITSTATUS(status); ASSERT_EQ(1, subprocess_exit_status) << details; @@ -279,7 +280,8 @@ void UnitTests::DeathSEGVMessage(int status, WIFEXITED(status) && (kExitAfterSIGSEGV == WEXITSTATUS(status)); #endif - ASSERT_TRUE(subprocess_got_sigsegv) << status; + ASSERT_TRUE(subprocess_got_sigsegv) << "Exit status: " << status + << " " << details; bool subprocess_exited_without_matching_message = msg.find(expected_msg) == std::string::npos; |