* support/regression/generate-cases.py: implemented more flexible rule
authorborutr <borutr@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Thu, 7 Jun 2007 19:47:43 +0000 (19:47 +0000)
committerborutr <borutr@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Thu, 7 Jun 2007 19:47:43 +0000 (19:47 +0000)
  for detection of testing functions, allowing white-spaces surrounding
  the function name and the 'void' parameter.

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4838 4a8a32a2-be11-0410-ad9d-d568d2c75423

ChangeLog
support/regression/generate-cases.py

index 6203bf41ab36a9614b70834837a018a3d9805e85..9ddf1610f78046f68a45c0d79edafe53ce7c72c8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,9 +1,12 @@
 2007-06-07 Borut Razem <borut.razem AT siol.net>
 
-       * sim/ucsim/*.*, sim/ucsim/configure, sim/ucsim/configure.in:
+       * sim/ucsim/*.[ch], sim/ucsim/configure, sim/ucsim/configure.in:
          permanent solution to suppress GCC 4.2.0 c++ warning:
          deprecated conversion from string constant to `char *'
          use 'const char *' where ever required
+       * support/regression/generate-cases.py: implemented more flexible rule
+         for detection of testing functions, allowing white-spaces surrounding
+         the function name and the 'void' parameter.
 
 2007-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
 
index 70da87d9163596332220e9a9b0fc34126be00116..d30a62d0d02408e04400a7dfd9f202f169a7b210 100644 (file)
@@ -156,7 +156,7 @@ class InstanceGenerator:
                     None
             else:
                 # Pull out any test function names
-                if re.search(r'^test\w+\(\w+\)', line) != None:
+                if re.search(r'^\W*test\w*\W*\(\W*void\W*\)', line) != None:
                     self.functions.append(line)
 
     def generate(self):