From 4e4fb07c24640b4a4e785703869cba9eb51466b3 Mon Sep 17 00:00:00 2001 From: "yangguo@chromium.org" Date: Tue, 1 Jul 2014 11:54:57 +0000 Subject: [PATCH] Disable test-spaces/SizeOfFirstPageIsLargeEnough for snapshot=off build. R=hpayer@chromium.org Review URL: https://codereview.chromium.org/368583002 git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@22114 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- test/cctest/test-spaces.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/cctest/test-spaces.cc b/test/cctest/test-spaces.cc index f8ab94e..0062094 100644 --- a/test/cctest/test-spaces.cc +++ b/test/cctest/test-spaces.cc @@ -27,9 +27,11 @@ #include +#include "src/snapshot.h" #include "src/v8.h" #include "test/cctest/cctest.h" + using namespace v8::internal; #if 0 @@ -405,6 +407,8 @@ TEST(LargeObjectSpace) { TEST(SizeOfFirstPageIsLargeEnough) { if (i::FLAG_always_opt) return; + // Bootstrapping without a snapshot causes more allocations. + if (!i::Snapshot::HaveASnapshotToStartFrom()) return; CcTest::InitializeVM(); Isolate* isolate = CcTest::i_isolate(); -- 2.7.4