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
+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
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