ssm-lang / Scoria

This is an embedding of the Sparse Synchronous Model, in Haskell!
BSD 3-Clause "New" or "Revised" License
4 stars 0 forks source link

Change test framework to use exit codes rather than inspecting stderr #43

Open Rewbert opened 2 years ago

Rewbert commented 2 years ago

The testing framework currently inspects stderr to figure out if running the c-code went alright, but we might want to use this stream for logging down the road. We should change the testing framework to use error codes instead and not rely on the stderr stream.

j-hui commented 2 years ago

We should use our own assertions (e.g., DEBUG_ASSERT) rather than relying on the C stdlib's assert macro---it gives us more control over what information to report, where to report it, and what to do afterwards.