From 0ace0218d3151df2d102463dd682128a88ae7be6 Mon Sep 17 00:00:00 2001 From: Jack Koenig Date: Fri, 22 Feb 2019 13:59:33 -0800 Subject: Stop reporting exceptions in custom transformations as internal errors (#867) Instead, just forward the exception--- src/test/scala/firrtlTests/InferReadWriteSpec.scala | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/test/scala/firrtlTests/InferReadWriteSpec.scala') diff --git a/src/test/scala/firrtlTests/InferReadWriteSpec.scala b/src/test/scala/firrtlTests/InferReadWriteSpec.scala index bffb1b51..db50b491 100644 --- a/src/test/scala/firrtlTests/InferReadWriteSpec.scala +++ b/src/test/scala/firrtlTests/InferReadWriteSpec.scala @@ -135,8 +135,11 @@ circuit sram6t : """.stripMargin val annos = Seq(memlib.InferReadWriteAnnotation) - intercept[InferReadWriteCheckException] { + intercept[Exception] { compileAndEmit(CircuitState(parse(input), ChirrtlForm, annos)) + } match { + case CustomTransformException(_: InferReadWriteCheckException) => // success + case _ => fail() } } -- cgit v1.2.3