Use `ignore` rather than not compile on big endian

reviewable/pr1190/r2
Tamir Duberstein 2 months ago
parent 679dc610d6
commit 429f5d3944
No known key found for this signature in database

@ -1808,11 +1808,13 @@ mod tests {
Btf::parse(&raw, Endianness::default()).unwrap();
}
// Not possible to emulate file system file "/sys/kernel/btf/vmlinux" as big endian, so skip
#[test]
#[cfg(feature = "std")]
#[cfg_attr(miri, ignore = "`open` not available when isolation is enabled")]
#[cfg(target_endian = "little")]
#[cfg_attr(
target_endian = "big",
ignore = "Not possible to emulate \"/sys/kernel/btf/vmlinux\" as big endian"
)]
fn test_read_btf_from_sys_fs() {
let btf = Btf::parse_file("/sys/kernel/btf/vmlinux", Endianness::default()).unwrap();
let task_struct_id = btf

Loading…
Cancel
Save