japaric / utest

Unit `#[test]`ing for microcontrollers and other `no_std` systems
125 stars 7 forks source link

Add assert_test_result required by latest nightly #2

Closed paoloteti closed 6 years ago

paoloteti commented 6 years ago

On recent nightly rather than directly give the test function to the test harness, compiler create a wrapper like this:

|| test::assert_test_result(real_function())

invoked when unit tests terminate

See 48143 on rust-lang/rust

japaric commented 6 years ago

Thanks, @paoloteti!