* support/regression/generate-cases.py: escape backslashes in {testcase}:
[fw/sdcc] / support / regression / generate-cases.py
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