* support/regression/generate-cases.py: fixed splitting of pathnames with dots
* as/hc08/lklibr.c,
* as/mcs51/lklibr.c (addfile): fixed off-by-one bug
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4094
4a8a32a2-be11-0410-ad9d-
d568d2c75423
+2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
+
+ * support/regression/collate-results.py: fixed output in case of
+ a valdiag error
+ * support/regression/generate-cases.py: fixed splitting of pathnames
+ with dots
+ * as/hc08/lklibr.c (addfile),
+ * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
+
2006-04-11 Raphael Neider <rneider AT web.de>
* src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
That way putting 'path' and 'libfil' together will result into the original filepath
as contained in 'str'.*/
int j;
- path = (char *) new (strlen(str));
+ path = (char *) new (strlen(str) + 1);
strcpy(path, str);
for(j=strlen(path)-1; j>=0; j--)
{
That way putting 'path' and 'libfil' together will result into the original filepath
as contained in 'str'.*/
int j;
- path = (char *) new (strlen(str));
+ path = (char *) new (strlen(str) + 1);
strcpy(path, str);
for(j=strlen(path)-1; j>=0; j--)
{
bytes = 0
ticks = 0
+# hack for valdiag
+name = ""
+
for line in lines:
if (re.search(r'^--- Running', line)):
name = line
self.functions = []
# Emit the suite wrapper into a temporary file
self.tmpname = tempfile.mktemp()
- (self.basename, self.ext) = re.split(r'\.', self.inname)
- self.ext = '.' + self.ext
+ (self.dirname, self.filename) = os.path.split(self.inname)
+ (self.basename, self.ext) = os.path.splitext (self.filename)
def permute(self, basepath, keys, trans = {}):
"""Permutes across all of the names. For each value, recursivly creates
createdir(outdir)
# Generate
- self.permute(os.path.join(outdir, os.path.basename(self.basename)), self.replacements.keys())
+ self.permute(os.path.join(outdir, self.basename), self.replacements.keys())
# Remove the temporary file
os.remove(self.tmpname)