/// Ignore tests that aren't supported yet.
Ignore tests that aren't supported yet.
Ignore tests that aren ' t supported yet .
fn ignore(testsuite: &str, testname: &str, strategy: &str) -> bool {
    match strategy {
        #[cfg(feature = "lightbeam")]
        "Lightbeam" => match (testsuite, testname) {
            ("simd", _) => return true,
            ("multi_value", _) => return true,
            ("reference_types", _) => return true,
            ("bulk_memory_operations", _) => return true,
            _ => (),
        },
        "Cranelift" => match (testsuite, testname) {
            // TODO(#1886): Ignore reference types tests if this isn't x64,
            // because Cranelift only supports reference types on x64.
            ("reference_types", _) => {
                return env::var("CARGO_CFG_TARGET_ARCH").unwrap() != "x86_64";
            }
            // These are only implemented on aarch64 and x64.
            ("simd", "simd_boolean")
            | ("simd", "simd_f32x4_pmin_pmax")
            | ("simd", "simd_f64x2_pmin_pmax") => {
                return !(cfg!(feature = "experimental_x64")
                    || env::var("CARGO_CFG_TARGET_ARCH").unwrap() == "aarch64")
            }
            // These are only implemented on aarch64.
            ("simd", "simd_f32x4_rounding") | ("simd", "simd_f64x2_rounding") => {
                return env::var("CARGO_CFG_TARGET_ARCH").unwrap() != "aarch64";
            }
            // These tests have simd operators which aren't implemented yet.
            // (currently none)
            _ => {}
        },
        _ => panic!("unrecognized strategy"),
    }
    false
}
fn ignore ( testsuite : & str , testname : & str , strategy : & str ) -> bool { match strategy { # [ cfg ( feature " " ) ] " " => match ( testsuite , testname ) { ( " " , _ ) => return true , ( " " , _ ) => return true , ( " " , _ ) => return true , ( " " , _ ) => return true , _ => ( ) , } , " " => match ( testsuite , testname ) { // TODO(#1886): Ignore reference types tests if this isn't x64, // because Cranelift only supports reference types on x64. ( " " , _ ) => { return env :: var ( " " ) . unwrap ( ) != " " ; } // These are only implemented on aarch64 and x64. ( " " , " " ) | ( " " , " " ) | ( " " , " " ) => { return ! ( cfg ! ( feature " " ) || env :: var ( " " ) . unwrap ( ) == " " ) } // These are only implemented on aarch64. ( " " , " " ) | ( " " , " " ) => { return env :: var ( " " ) . unwrap ( ) != " " ; } // These tests have simd operators which aren't implemented yet. // (currently none) _ => { } } , _ => panic ! ( " " ) , } false }
Ignore tests that aren't supported yet.
Ignore tests that aren ' t supported yet .
testsuite
&str
testname
&str
strategy
&str