From: borutr Date: Mon, 31 Oct 2005 13:35:09 +0000 (+0000) Subject: * support/regression/generate-cases.py: escape backslashes in {testcase}: X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=3a9211f3fa7fc3c3e3593149008f855e685457bd;p=fw%2Fsdcc * support/regression/generate-cases.py: escape backslashes in {testcase}: 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 --- diff --git a/ChangeLog b/ChangeLog index 535ad0b4..0a7d6359 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-10-31 Borut Razem + + * 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 * src/SDCCutil.c: corrected double comparison typo diff --git a/support/regression/generate-cases.py b/support/regression/generate-cases.py index 917213d6..81ebe8da 100644 --- a/support/regression/generate-cases.py +++ b/support/regression/generate-cases.py @@ -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