Skip to content
Snippets Groups Projects
Commit d773400b authored by Regis Blanc's avatar Regis Blanc
Browse files

tests display more information on failure

parent 4f7d848c
Branches
Tags
No related merge requests found
......@@ -19,7 +19,6 @@ object AntiAliasingPhase extends TransformationPhase {
val description = "Make aliasing explicit"
override def apply(ctx: LeonContext, pgm: Program): Program = {
val fds = allFunDefs(pgm)
fds.foreach(fd => checkAliasing(fd)(ctx))
......
......@@ -41,7 +41,7 @@ trait VerificationSuite extends LeonRegressionSuite {
VerificationPhase andThen
(if (desugarXLang) FixReportLabels else NoopPhase[VerificationReport])
val ctx = createLeonContext(files:_*)
val ctx = createLeonContext(files:_*).copy(reporter = new TestErrorReporter)
try {
val (_, ast) = extraction.run(ctx, files)
......
......@@ -13,3 +13,10 @@ class TestSilentReporter extends DefaultReporter(Set()) {
case _ =>
}
}
class TestErrorReporter extends DefaultReporter(Set()) {
override def emit(msg: Message): Unit = msg match {
case Message(this.ERROR | this.FATAL, _, _) => super.emit(msg)
case _ =>
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment