From b19fc9cc90c5369f4aff5937ae1d4fd7682538b0 Mon Sep 17 00:00:00 2001 From: jerel Date: Wed, 25 Oct 2023 17:26:06 -0500 Subject: [PATCH] Make lib extension dynamic in integration test --- membrane/tests/integration_tests.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/membrane/tests/integration_tests.rs b/membrane/tests/integration_tests.rs index 86d4dd5..cbd8fd3 100644 --- a/membrane/tests/integration_tests.rs +++ b/membrane/tests/integration_tests.rs @@ -180,7 +180,13 @@ import '../locations/locations.dart' show GDPR, Location; build_lib(&path.to_path_buf(), &mut vec![]); - Membrane::new_from_cdylib(&path.join("libexample.so")) + let lib = if cfg!(target_os = "macos") { + "libexample.dylib" + } else { + "libexample.so" + }; + + Membrane::new_from_cdylib(&path.join(lib)) .timeout(200) .package_destination_dir(path) .using_lib("libexample")