[rust-dev] crate_type = "lib" and testing

Alexander Stavonin a.stavonin at gmail.com
Wed Apr 11 16:10:44 PDT 2012

Hi, Brian

I can't reproduce error with segmentation faults any more, and I suppose
that were my mistake because of bad understanding of Rust. The issue were
in the re_get_supported_methods (line 40, vec::map(cstrs) {|cstr|
str::unsafe::from_c_str(cstr) }) function in revent.rs.



Yes, tests are run in parallel. I would be interested to see what tests
> this causes issues for. From personal experience I've encountered
> difficulties when tests modify global state, like getenv/setenv. I also ran
> into a major problem with bindings to a library that wasn't threadsafe.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/rust-dev/attachments/20120412/3e743464/attachment.html>

More information about the Rust-dev mailing list