fix: builds on FreeBSD once again

The resource limis feature seems to be available only on certain platforms,
so the set_resource_limit() function and its test are enabled only on the
platforms that are known to be supported (linux and macos).

cargo test passes
This commit is contained in:
Nathan Fiedler
2023-01-28 21:59:56 -08:00
parent 9aaf0244d1
commit 08fb952056
4 changed files with 15 additions and 27 deletions

View File

@ -385,7 +385,8 @@ fn test_negate_image() {
}
#[test]
#[cfg(not(windows))]
// opt-in platforms that have resource limits support
#[cfg(any(target_os = "linux", target_os = "macos"))]
fn test_resource_limits() {
use magick_rust::ResourceType;
START.call_once(|| {