From: borutr Date: Thu, 7 Jun 2007 19:47:43 +0000 (+0000) Subject: * support/regression/generate-cases.py: implemented more flexible rule X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=3f72e83538216a5aa0924d6858943d142f0cd8a9;p=fw%2Fsdcc * 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. git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4838 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/ChangeLog b/ChangeLog index 6203bf41..9ddf1610 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,9 +1,12 @@ 2007-06-07 Borut Razem - * 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 diff --git a/support/regression/generate-cases.py b/support/regression/generate-cases.py index 70da87d9..d30a62d0 100644 --- a/support/regression/generate-cases.py +++ b/support/regression/generate-cases.py @@ -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):