Skip to content
Snippets Groups Projects
Commit e7ffc49c authored by Etienne Kneuss's avatar Etienne Kneuss
Browse files

Display more information in case of a verification failure

parent f5895876
No related branches found
No related tags found
No related merge requests found
...@@ -61,8 +61,13 @@ trait VerificationSuite extends LeonRegressionSuite { ...@@ -61,8 +61,13 @@ trait VerificationSuite extends LeonRegressionSuite {
ts(f"$index%3d: $displayName ${options.mkString(" ")}", Seq()) { ts(f"$index%3d: $displayName ${options.mkString(" ")}", Seq()) {
val ctx = createLeonContext(options: _*) val ctx = createLeonContext(options: _*)
val (ctx2, report) = analysis.run(ctx, p) try {
block(Output(report, ctx2.reporter)) val (ctx2, report) = analysis.run(ctx, p)
block(Output(report, ctx2.reporter))
} catch {
case fe: LeonFatalError =>
fail(ctx, "Verification failed", fe)
}
} }
} }
} catch { } catch {
......
...@@ -33,7 +33,7 @@ trait LeonRegressionSuite extends FunSuite with Timeouts { ...@@ -33,7 +33,7 @@ trait LeonRegressionSuite extends FunSuite with Timeouts {
body body
} catch { } catch {
case fe: LeonFatalError => case fe: LeonFatalError =>
throw new TestFailedException("", fe, 5) throw new TestFailedException("Uncaught LeonFatalError", fe, 5)
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment