diff options
| author | Jim Lawson | 2016-11-14 09:58:52 -0800 |
|---|---|---|
| committer | Jim Lawson | 2016-11-14 09:58:52 -0800 |
| commit | 1b53d893816d349f5ea18fa0ed13325b9f1b6917 (patch) | |
| tree | ed3e1b35e41f3db810d4211ad3a9de1d797613ea /src | |
| parent | b936f5e7f906f45ab635ad6e5c45cfec6726f716 (diff) | |
Avoid dynamicContext issues - use ChiselRunners.elaborate()
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/scala/chiselTests/MissingCloneBindingExceptionSpec.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/scala/chiselTests/MissingCloneBindingExceptionSpec.scala b/src/test/scala/chiselTests/MissingCloneBindingExceptionSpec.scala index fd48206e..719484ac 100644 --- a/src/test/scala/chiselTests/MissingCloneBindingExceptionSpec.scala +++ b/src/test/scala/chiselTests/MissingCloneBindingExceptionSpec.scala @@ -4,7 +4,7 @@ package chiselTests import Chisel.ChiselException import org.scalatest._ -class MissingCloneBindingExceptionSpec extends FlatSpec with Matchers { +class MissingCloneBindingExceptionSpec extends ChiselFlatSpec with Matchers { behavior of "missing cloneType in Chisel3" ( the[ChiselException] thrownBy { import chisel3._ @@ -27,7 +27,7 @@ class MissingCloneBindingExceptionSpec extends FlatSpec with Matchers { } } - val dummy = new TestTop + elaborate(new TestTop) }).getMessage should include("needs cloneType method") behavior of "missing cloneType in Chisel2" @@ -52,6 +52,6 @@ class MissingCloneBindingExceptionSpec extends FlatSpec with Matchers { } } - val dummy = new TestTop + elaborate(new TestTop) }).getMessage should include("needs cloneType method") } |
