diff --git a/tests/Jellyfin.MediaEncoding.Tests/Encoder/ApplePlatformHelperTests.cs b/tests/Jellyfin.MediaEncoding.Tests/Encoder/ApplePlatformHelperTests.cs index 586a382485..9847acbb0a 100644 --- a/tests/Jellyfin.MediaEncoding.Tests/Encoder/ApplePlatformHelperTests.cs +++ b/tests/Jellyfin.MediaEncoding.Tests/Encoder/ApplePlatformHelperTests.cs @@ -13,6 +13,10 @@ public class ApplePlatformHelperTests { Assert.SkipUnless(OperatingSystem.IsMacOS(), "macOS-only test"); - Assert.NotEmpty(ApplePlatformHelper.GetSysctlValue("machdep.cpu.brand_string")); + var value = ApplePlatformHelper.GetSysctlValue("machdep.cpu.brand_string"); + Assert.NotEmpty(value); + + // Make sure we don't include the null terminator + Assert.DoesNotContain("\0", value, StringComparison.Ordinal); } }