Mercurial > projects > ldc
diff tests/makewebstatistics.d @ 261:5723b7385c25 trunk
[svn r279] fixed bug in makewebstatistics, regenerated output
author | ChristianK |
---|---|
date | Fri, 13 Jun 2008 08:21:11 +0200 |
parents | 4234b014a4f2 |
children | 5d2f4814bb2e |
line wrap: on
line diff
--- a/tests/makewebstatistics.d Fri Jun 13 07:50:55 2008 +0200 +++ b/tests/makewebstatistics.d Fri Jun 13 08:21:11 2008 +0200 @@ -381,7 +381,7 @@ // write status BufferedFile makeFile(char[] name) { - return new BufferedFile(std.path.join(dirname, name), FileMode.Out); + return new BufferedFile(std.path.join(dirname, name), FileMode.OutNew); } BufferedFile[Result] resultsfile = [ Result.PASS: makeFile("pass.html"), @@ -403,7 +403,7 @@ } - BufferedFile stats = new BufferedFile(std.path.join(dirname, "stats.base"), FileMode.Out); + BufferedFile stats = new BufferedFile(std.path.join(dirname, "stats.base"), FileMode.OutNew); scope(exit) stats.close(); stats.writefln(`<tr>`); stats.writefln(`<td style="padding-right:1em; text-align:left;">`, id, `</td>`); @@ -450,11 +450,11 @@ oldLog = getOrParse(oldid, files[1+i-1]); int nRegressions, nImprovements, nChanges; - auto regressionsFile = new BufferedFile(std.path.join(dirname, "regressions.html"), FileMode.Out); + auto regressionsFile = new BufferedFile(std.path.join(dirname, "regressions.html"), FileMode.OutNew); scope(exit) regressionsFile.close(); - auto improvementsFile = new BufferedFile(std.path.join(dirname, "improvements.html"), FileMode.Out); + auto improvementsFile = new BufferedFile(std.path.join(dirname, "improvements.html"), FileMode.OutNew); scope(exit) improvementsFile.close(); - auto changesFile = new BufferedFile(std.path.join(dirname, "changes.html"), FileMode.Out); + auto changesFile = new BufferedFile(std.path.join(dirname, "changes.html"), FileMode.OutNew); scope(exit) changesFile.close(); BufferedFile targetFile; @@ -480,7 +480,7 @@ } } - BufferedFile stats = new BufferedFile(std.path.join(dirname, "stats.base"), FileMode.Out); + BufferedFile stats = new BufferedFile(std.path.join(dirname, "stats.base"), FileMode.OutNew); scope(exit) stats.close(); auto dir = oldid ~ "-to-" ~ newid; stats.writefln(`<tr><td></td>`); @@ -492,7 +492,7 @@ } // collect all the stats.base files into a large table - BufferedFile index = new BufferedFile(std.path.join(basedir, "index.html"), FileMode.Out); + BufferedFile index = new BufferedFile(std.path.join(basedir, "index.html"), FileMode.OutNew); scope(exit) index.close(); index.writefln(` <html><body>