Merge pull request #379 from dave-tucker/fix-link-segfault

aya: Fix segfault in define_link_wrapper
pull/352/head
Dave Tucker 2 years ago committed by GitHub
commit 945169996c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -258,7 +258,7 @@ macro_rules! define_link_wrapper {
impl From<$wrapper> for $base {
fn from(w: $wrapper) -> $base {
w.into()
w.0
}
}
};

@ -61,7 +61,7 @@ fn multiple_btf_maps() -> anyhow::Result<()> {
}
fn is_loaded() -> bool {
let output = Command::new("bpftool").args(&["prog"]).output().unwrap();
let output = Command::new("bpftool").args(["prog"]).output().unwrap();
let stdout = String::from_utf8(output.stdout).unwrap();
stdout.contains("test_unload")
}

Loading…
Cancel
Save