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