veecle / veecle-pxros

A runtime for writing automotive and industrial Rust on top of HighTec's safety kernel for the Infineon AURIX™ Platform.
https://www.veecle.io/aurix
Apache License 2.0
15 stars 3 forks source link

Tests: Add tests for task creation config #10

Open arctic-alpaca opened 6 months ago

arctic-alpaca commented 6 months ago

We need to add tests for the task creation config merged in #3.

The tests were not added directly because PxEvents_t, PxPrio_t and similar don't implement Eq which would make testing a lot easier. For bindings type aliases, we are waiting for the next release of bindgen, which will contain https://github.com/rust-lang/rust-bindgen/pull/2780 to make deriving Eq and friends easy. This change will first have to be added to https://github.com/hightec-rt/pxros. I will create a PR when bindgen is released.

A new release of bindgen has already been requested here: https://github.com/rust-lang/rust-bindgen/issues/2802