summaryrefslogtreecommitdiffstats
path: root/mojo/common
diff options
context:
space:
mode:
authorviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-03 19:21:09 +0000
committerviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-03 19:21:09 +0000
commit3f2f55777ca4f4e0c8ed3ccfb868afbba87d4ab8 (patch)
treeba2a33901b9cfc19ac7a988d9aa0d5390e4ea809 /mojo/common
parent539b4dc64acd50c6362305fee1dda9a85f77ef6b (diff)
downloadchromium_src-3f2f55777ca4f4e0c8ed3ccfb868afbba87d4ab8.zip
chromium_src-3f2f55777ca4f4e0c8ed3ccfb868afbba87d4ab8.tar.gz
chromium_src-3f2f55777ca4f4e0c8ed3ccfb868afbba87d4ab8.tar.bz2
Mojo: Silence death ...
... test thread warnings (on Linux). Actually, just run them in a thread-safe way (even though we shouldn't have any actual thread safety issues). R=darin@chromium.org Review URL: https://codereview.chromium.org/185873002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@254525 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'mojo/common')
-rw-r--r--mojo/common/test/run_all_unittests.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/mojo/common/test/run_all_unittests.cc b/mojo/common/test/run_all_unittests.cc
index 792c2a1..185968c 100644
--- a/mojo/common/test/run_all_unittests.cc
+++ b/mojo/common/test/run_all_unittests.cc
@@ -8,8 +8,13 @@
#include "mojo/common/test/test_support_impl.h"
#include "mojo/public/tests/test_support_private.h"
#include "mojo/system/embedder/embedder.h"
+#include "testing/gtest/include/gtest/gtest.h"
int main(int argc, char** argv) {
+ // Silence death test thread warnings on Linux. We can afford to run our death
+ // tests a little more slowly (< 10 ms per death test on a Z620).
+ testing::GTEST_FLAG(death_test_style) = "threadsafe";
+
base::TestSuite test_suite(argc, argv);
mojo::embedder::Init();