mirror of
https://github.com/Noratrieb/rustv32i.git
synced 2026-01-14 21:35:02 +01:00
use cfg
This commit is contained in:
parent
af84ff7ca6
commit
3c06645479
2 changed files with 5 additions and 4 deletions
|
|
@ -1126,11 +1126,8 @@ mod tests {
|
|||
use std::io::Write;
|
||||
|
||||
#[test]
|
||||
#[cfg_attr(not(slow_tests), ignore)]
|
||||
fn exhaustive_decode_no_panic() {
|
||||
if std::env::var("SLOW_TESTS").is_err() {
|
||||
return;
|
||||
}
|
||||
|
||||
for i in 0..u32::MAX {
|
||||
if (i % (2 << 25)) == 0 {
|
||||
let percent = i as f32 / (u32::MAX as f32);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue