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:
@ -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(|| {
|
||||
|
||||
Reference in New Issue
Block a user