Bug fixes in: (1) Output.FileWriters, (2) MainSeq and TestProgressControls, more logging in CoverTest.

This commit is contained in:
Milan Hanajik
2017-05-04 22:13:33 +02:00
parent 2933bd24e7
commit 95f14f9879
5 changed files with 52 additions and 30 deletions
@@ -259,15 +259,18 @@ namespace TBF.BenchControl.Output.FileWriters.Enhanced
void WriteRslts(Results.Entities.Batch batch, string destination)
{
StreamWriter writer;
try
StreamWriter writer = StreamWriter.Null;
if (!string.IsNullOrEmpty(destination))
{
writer = File.AppendText(GetFilename(destination, batch.EndTime));
}
catch
{
writer = StreamWriter.Null;
try
{
writer = File.AppendText(GetFilename(destination, batch.EndTime));
}
catch
{
}
}
WriteRslts2(batch, writer);
writer.Close();
}