mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
only run stylo_tests's size_of tests on 64-bit platforms
The tests are designed for this, and trying to accommodate 32-bit platforms is difficult. Size concerns due to element packing and holes are less of a problem on 32-bit platforms in any event.
This commit is contained in:
parent
58e7f47f1d
commit
4010d93511
2 changed files with 2 additions and 1 deletions
|
@ -13,6 +13,7 @@ extern crate selectors;
|
||||||
extern crate style_traits;
|
extern crate style_traits;
|
||||||
|
|
||||||
mod sanity_checks;
|
mod sanity_checks;
|
||||||
|
#[cfg(target_pointer_width = "64")]
|
||||||
mod size_of;
|
mod size_of;
|
||||||
mod specified_values;
|
mod specified_values;
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
use style;
|
use style;
|
||||||
|
|
||||||
#[test]
|
#[cfg(all(test, target_pointer_width = "64"))]
|
||||||
fn size_of_specified_values() {
|
fn size_of_specified_values() {
|
||||||
use std::mem::size_of;
|
use std::mem::size_of;
|
||||||
let threshold = 24;
|
let threshold = 24;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue