aboutsummaryrefslogtreecommitdiff
path: root/tests/Jellyfin.MediaEncoding.Tests/Encoder
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2026-06-16 17:45:22 +0200
committerBond_009 <bond.009@outlook.com>2026-06-16 17:45:22 +0200
commit4c228eaf63c0b60e40a5a4b82aa66af336750f08 (patch)
treeacbbe6b81157826092a6b594dd7c830852947458 /tests/Jellyfin.MediaEncoding.Tests/Encoder
parent0022508889adb8b60bde8bc5e69640d3ff8dd346 (diff)
Make sure we don't include the null terminator
Diffstat (limited to 'tests/Jellyfin.MediaEncoding.Tests/Encoder')
-rw-r--r--tests/Jellyfin.MediaEncoding.Tests/Encoder/ApplePlatformHelperTests.cs6
1 files changed, 5 insertions, 1 deletions
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);
}
}