* support/regression/generate-cases.py: escape backslashes in {testcase}:
authorborutr <borutr@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Mon, 31 Oct 2005 13:35:09 +0000 (13:35 +0000)
committerborutr <borutr@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Mon, 31 Oct 2005 13:35:09 +0000 (13:35 +0000)
  WIN32 backslash path delimiters should be escaped when used in C strings

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

ChangeLog
support/regression/generate-cases.py

index 535ad0b483b4a479fe546540059fe4c41184e1db..0a7d63595b5b7f45a228ed3eca75e3765d66b69a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-10-31 Borut Razem <borut.razem AT siol.net>
+
+       * support/regression/generate-cases.py: escape backslashes in {testcase}:
+         WIN32 backslash path delimiters should be escaped when used in C strings
+
 2005-10-30 Borut Razem <borut.razem AT siol.net>
 
        * src/SDCCutil.c: corrected double comparison typo
index 917213d6d0589f02d0391ba97b6d7418103e07de..81ebe8daaf96e21138ff428a3e40228430a18703 100644 (file)
@@ -80,7 +80,7 @@ class InstanceGenerator:
         if len(keys) == 0:
             # End of the recursion.
             # Set the runtime substitutions.
-            trans['testcase'] = basepath
+            trans['testcase'] = re.sub(r'\\', r'\\\\', basepath)
             # Create the instance from the template
             T = TemplateDocument(self.tmpname)
             T.substitutions = trans