Skip to content

Commit

Permalink
Merge pull request #2122 from 9rnsr/fix_test
Browse files Browse the repository at this point in the history
fix code for stripping "DMD 2.0xx DEBUG" output
  • Loading branch information
andralex committed Jun 2, 2013
2 parents 4c2592c + 929a9c7 commit b76c54a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/d_do_test.d
Expand Up @@ -431,6 +431,7 @@ int main(string[] args)
}
}

compile_output = std.regex.replace(compile_output, regex(`^DMD v2\.[0-9]+.* DEBUG$`, "m"), "");
compile_output = std.string.strip(compile_output);
compile_output = compile_output.unifyNewLine();

Expand All @@ -439,8 +440,6 @@ int main(string[] args)

if (testArgs.compileOutput !is null)
{
compile_output = std.regex.replace(compile_output, regex(`DMD v2\.[0-9]+.* DEBUG\n`, ""), "");
compile_output = std.regex.replace(compile_output, regex(`\nDMD v2\.[0-9]+.* DEBUG`, ""), "");
enforce(compile_output == testArgs.compileOutput,
"\nexpected:\n----\n"~testArgs.compileOutput~"\n----\nactual:\n----\n"~compile_output~"\n----\n");
}
Expand Down

0 comments on commit b76c54a

Please sign in to comment.