summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'src/test')
-rw-r--r--src/test/scala/chiselTests/Stop.scala18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/test/scala/chiselTests/Stop.scala b/src/test/scala/chiselTests/Stop.scala
new file mode 100644
index 00000000..7ce9461b
--- /dev/null
+++ b/src/test/scala/chiselTests/Stop.scala
@@ -0,0 +1,18 @@
+// See LICENSE for license details.
+
+package chiselTests
+
+import org.scalatest._
+import Chisel._
+import Chisel.testers.BasicTester
+
+class StopTester() extends BasicTester {
+ io.done := Bool(false)
+ stop()
+}
+
+class StopSpec extends ChiselFlatSpec {
+ "stop()" should "stop and succeed the testbench" in {
+ assert(execute{ new StopTester })
+ }
+}