Only perform code flusing test if we actually do code flushing.
authorricow@chromium.org <ricow@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 11 Jun 2010 08:52:36 +0000 (08:52 +0000)
committerricow@chromium.org <ricow@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 11 Jun 2010 08:52:36 +0000 (08:52 +0000)
Puts a check into the code flushing test to only perform this if the
flush_code flag is set to true.

Review URL: http://codereview.chromium.org/2734006

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4842 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

test/cctest/test-heap.cc

index d30b5ab..195fef4 100644 (file)
@@ -960,6 +960,8 @@ TEST(Regression39128) {
 
 TEST(TestCodeFlushing) {
   i::FLAG_allow_natives_syntax = true;
+  // If we do not flush code this test is invalid.
+  if (!FLAG_flush_code) return;
   InitializeVM();
   v8::HandleScope scope;
   const char* source = "function foo() {"