darfink / region-rs

A cross-platform virtual memory API written in Rust
https://darfink.github.io/region-rs/
MIT License
119 stars 23 forks source link

Properly skip protect::protect doctest on non-x86 #7

Closed ignatenkobrain closed 5 years ago

ignatenkobrain commented 5 years ago

I'm not sure if this is correct way to do it, but it works.

Signed-off-by: Igor Gnatenko i.gnatenko.brain@gmail.com

darfink commented 5 years ago

Thanks, that's great. Some may argue the test itself should be platform agnostic, but I find it to be an interesting display of executing code created at runtime.