Skip to content

Commit

Permalink
Added new test which exposes a bug in the regression manager
Browse files Browse the repository at this point in the history
  • Loading branch information
chiggs committed Jul 5, 2013
1 parent 68deeb2 commit 80b3ac8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions examples/functionality/tests/test_cocotb.py
Expand Up @@ -108,3 +108,15 @@ def test_coroutine_kill(dut):
yield Timer(1000)
if test_flag is not True:
raise cocotb.TestFailed

@cocotb.test()
def test_adding_a_coroutine_without_starting(dut):
"""Catch (and provide useful error) for attempts to fork coroutines incorrectly"""
yield Timer(100)
forked = cocotb.fork(clock_gen)
yield Timer(100)
yield Join(forked)
yield Timer(100)



0 comments on commit 80b3ac8

Please sign in to comment.