Skip to content

Commit

Permalink
disable some tests for non-x86_64 platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronKutch committed Nov 28, 2020
1 parent e964b37 commit 76ed064
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions testcrate/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
//! encounter. The randomized fuzz testing is specially designed to cover wide swaths of search
//! space in as few iterations as possible. See `fuzz_values` in `testcrate/tests/misc.rs` for an
//! example.
//!
//! Some floating point tests are only enabled on x86_64, because many other targets do not have
//! correct rounding.
#![no_std]

use compiler_builtins::float::Float;
Expand Down
1 change: 1 addition & 0 deletions testcrate/tests/addsub.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ macro_rules! float_sum {
};
}

#[cfg(target_arch = "x86_64")]
#[test]
fn float_addsub() {
use compiler_builtins::float::{
Expand Down
1 change: 1 addition & 0 deletions testcrate/tests/conv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ macro_rules! i_to_f {
};
}

#[cfg(target_arch = "x86_64")]
#[test]
fn int_to_float() {
use compiler_builtins::float::conv::{
Expand Down

0 comments on commit 76ed064

Please sign in to comment.