JohnTitor / ctest2

Automatic testing of FFI bindings for Rust
https://crates.io/crates/ctest2
Apache License 2.0
22 stars 20 forks source link

Print out errors to stderr #37

Closed flba-eb closed 2 years ago

flba-eb commented 2 years ago

Generated C code is printing to stderr. Printing to stdout on Rust side can lead to scrambled output; also, buffering of stdout can drop messages in case of a crash. I've actually observed the scrambled output, and this change fixes it.