Vendor things
This commit is contained in:
parent
5deceec006
commit
977e3c17e5
19434 changed files with 10682014 additions and 0 deletions
17
third-party/vendor/libloading/tests/library_filename.rs
vendored
Normal file
17
third-party/vendor/libloading/tests/library_filename.rs
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
extern crate libloading;
|
||||
use libloading::library_filename;
|
||||
use std::path::Path;
|
||||
|
||||
#[cfg(target_os = "windows")]
|
||||
const EXPECTED: &str = "audioengine.dll";
|
||||
#[cfg(target_os = "linux")]
|
||||
const EXPECTED: &str = "libaudioengine.so";
|
||||
#[cfg(target_os = "macos")]
|
||||
const EXPECTED: &str = "libaudioengine.dylib";
|
||||
|
||||
#[test]
|
||||
fn test_library_filename() {
|
||||
let name = "audioengine";
|
||||
let resolved = library_filename(name);
|
||||
assert!(Path::new(&resolved).ends_with(EXPECTED));
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue