aboutsummaryrefslogtreecommitdiff
path: root/src/test/scala/firrtlTests/InferReadWriteSpec.scala
diff options
context:
space:
mode:
authorJack Koenig2019-02-22 13:59:33 -0800
committermergify[bot]2019-02-22 21:59:33 +0000
commit0ace0218d3151df2d102463dd682128a88ae7be6 (patch)
tree1e7728ceb4b7cd160e3547decc4be1ef77d5aeda /src/test/scala/firrtlTests/InferReadWriteSpec.scala
parent50d9571bc26c445fd9ebaeb3c06d80d598397405 (diff)
Stop reporting exceptions in custom transformations as internal errors (#867)
Instead, just forward the exception
Diffstat (limited to 'src/test/scala/firrtlTests/InferReadWriteSpec.scala')
-rw-r--r--src/test/scala/firrtlTests/InferReadWriteSpec.scala5
1 files changed, 4 insertions, 1 deletions
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()
}
}