You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#[cfg(test)]
mod tests {
use {super::*, std::fs};
#[test]
fn test_load_lib() {
unsafe {
let libpath = "/Path/to/some/existing/file.dylib";
let libpath = PathBuf::from(libpath.clone());
let _lib = Library::new(libpath.clone()).unwrap();
drop(_lib);
fs::remove_file(libpath.clone()).unwrap();
let libpath = PathBuf::from(libpath);
let _lib = Library::new(libpath).expect_err("expected an error");
let libpath = "/Path/to/some/non-existing/file.dylib";
let libpath = PathBuf::from(libpath);
let _lib = Library::new(libpath).expect_err("err");
}
}
}
this test case fails on my mac. seems like issue with libloader Library
Problem
Geyser hotreload seems to use a cached version of the dll.
Steps to Repro:
The workaround is to rename the
.so
file on each compilation to correctly pull it in.Proposed Solution
Not sure what the solution is here but here's a related issue:
mitchmindtree/hotlib#5
The text was updated successfully, but these errors were encountered: