Revision: 2816
Author: [email protected]
Date: Wed Sep  2 05:40:00 2009
Log: Add verification flags to debug mjsunit test runs.

Review URL: http://codereview.chromium.org/186006
http://code.google.com/p/v8/source/detail?r=2816

Modified:
  /branches/bleeding_edge/test/cctest/testcfg.py
  /branches/bleeding_edge/test/mjsunit/testcfg.py

=======================================
--- /branches/bleeding_edge/test/cctest/testcfg.py      Fri Mar 27 05:32:28 2009
+++ /branches/bleeding_edge/test/cctest/testcfg.py      Wed Sep  2 05:40:00 2009
@@ -31,7 +31,7 @@
  import platform
  import utils

-DEBUG_FLAGS = ['--enable-slow-asserts', '--debug-code', '--verify-heap']
+CCTEST_DEBUG_FLAGS =  
['--enable-slow-asserts', '--debug-code', '--verify-heap']


  class CcTestCase(test.TestCase):
@@ -55,7 +55,7 @@
      serialization_option = '--testing_serialization_file=' +  
serialization_file
      result = [ self.executable, name, serialization_option ]
      if self.mode == 'debug':
-      result += DEBUG_FLAGS
+      result += CCTEST_DEBUG_FLAGS
      return result

    def GetCommand(self):
=======================================
--- /branches/bleeding_edge/test/mjsunit/testcfg.py     Wed Jul  8 23:39:38 2009
+++ /branches/bleeding_edge/test/mjsunit/testcfg.py     Wed Sep  2 05:40:00 2009
@@ -31,7 +31,7 @@
  import re
  import tempfile

-
+MJSUNIT_DEBUG_FLAGS =  
['--enable-slow-asserts', '--debug-code', '--verify-heap']
  FLAGS_PATTERN = re.compile(r"//\s+Flags:(.*)")
  FILES_PATTERN = re.compile(r"//\s+Files:(.*)")
  SELF_SCRIPT_PATTERN = re.compile(r"//\s+Env: TEST_FILE_NAME")
@@ -58,6 +58,8 @@
      flags_match = FLAGS_PATTERN.search(source)
      if flags_match:
        result += flags_match.group(1).strip().split()
+    if self.mode == 'debug':
+      result += MJSUNIT_DEBUG_FLAGS
      additional_files = []
      files_match = FILES_PATTERN.search(source);
      # Accept several lines of 'Files:'

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

Reply via email to