2c3d87b168bf522f538e78325fdae71c320e6e20 introduced a new test that passes on macOS but fails on other operating systems. This commit makes it only run on macOS.