rohd-vf icon indicating copy to clipboard operation
rohd-vf copied to clipboard

Exceptions from `Simulator` do not properly end `Test`s

Open mkorbel1 opened this issue 1 year ago • 0 comments

Describe the bug

If Simulator.run throws an exception, the Test should immediately end (and fail). However, as currently implemented in start, it can cause a hang instead.

Depends on fix from https://github.com/intel/rohd/pull/515

Once the ROHD fix is available, it should be possible to wait for Simulator.simulationEnded and separately start it with unawaited(Simulator.run()), which should allow the exception to throw all the way up instead of hanging quietly.

To Reproduce

Throw an exception in a registerEndOfSimulationAction, then start the test.

Expected behavior

Test fails

Actual behavior

Test hangs

Additional: Dart SDK info

No response

Additional: pubspec.yaml

No response

Additional: Context

No response

mkorbel1 avatar Oct 04 '24 21:10 mkorbel1