Index: base/memory/scoped_ptr_unittest.cc |
diff --git a/base/memory/scoped_ptr_unittest.cc b/base/memory/scoped_ptr_unittest.cc |
index 6022293475118fbc980740dc8b8ed14b4a5be8c7..24d43c53a966feb89bb4ae5f83b9beaeb5e273d7 100644 |
--- a/base/memory/scoped_ptr_unittest.cc |
+++ b/base/memory/scoped_ptr_unittest.cc |
@@ -11,6 +11,7 @@ |
#include "base/bind.h" |
#include "base/callback.h" |
#include "base/macros.h" |
+#include "build/build_config.h" |
#include "testing/gtest/include/gtest/gtest.h" |
namespace { |
@@ -401,6 +402,7 @@ TEST(ScopedPtrTest, MoveBehavior) { |
EXPECT_TRUE(scoper3.get()); |
} |
+#if !(defined(OS_LINUX) && !defined(OS_CHROMEOS)) |
// Test uncaught Pass() does not have side effects, because Pass() |
// is implemented by std::move(). |
// TODO(danakj): Remove this test case when we remove Pass(). |
@@ -416,6 +418,7 @@ TEST(ScopedPtrTest, MoveBehavior) { |
EXPECT_TRUE(rvalue); |
} |
EXPECT_EQ(0, constructed); |
+#endif |
// Test that passing to function which does nothing does not leak. |
{ |