Reviewers: Mads Ager,

Description:
Only perform code flusing test if we actually do code flushing.

Puts a check into the code flushing test to only perform this if the
flush_code flag is set to true.



Please review this at http://codereview.chromium.org/2734006/show

SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/

Affected files:
  M     test/cctest/test-heap.cc


Index: test/cctest/test-heap.cc
===================================================================
--- test/cctest/test-heap.cc    (revision 4841)
+++ test/cctest/test-heap.cc    (working copy)
@@ -960,6 +960,8 @@

 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() {"


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to