mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-12 10:53:14 +01:00
Fix findregressions and makewebstatistics to adhere to our definition of
Improvement and Regression.
This commit is contained in:
@@ -344,10 +344,10 @@ int main(char[][] args){
|
||||
if(oldT !is null){
|
||||
if(oldT.r == t.r)
|
||||
continue;
|
||||
else if(oldT.r < t.r && oldT.r && oldT.r <= Result.XFAIL){
|
||||
else if(t.r >= Result.XPASS && oldT.r && oldT.r <= Result.XFAIL){
|
||||
writef("Regression ");
|
||||
}
|
||||
else if(t.r < oldT.r && t.r && t.r <= Result.XFAIL){
|
||||
else if(t.r && t.r <= Result.XFAIL && oldT.r >= Result.XPASS){
|
||||
writef("Improvement ");
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -667,11 +667,11 @@ void generateChangeStatistics(char[] file1, char[] file2, ref Log[char[]] logs)
|
||||
if(oldT !is null){
|
||||
if(oldT.r == t.r)
|
||||
continue;
|
||||
else if(oldT.r < t.r && oldT.r && oldT.r <= Result.XFAIL){
|
||||
else if(t.r >= Result.XPASS && oldT.r && oldT.r <= Result.XFAIL){
|
||||
targetFile = regressionsFile;
|
||||
nRegressions++;
|
||||
}
|
||||
else if(t.r < oldT.r && t.r && t.r <= Result.XFAIL){
|
||||
else if(t.r && t.r <= Result.XFAIL && oldT.r >= Result.XPASS){
|
||||
targetFile = improvementsFile;
|
||||
nImprovements++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user