blob: 9847acbb0ab41959034bbf3dab8691ec08b3d4cf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
using System;
using System.Runtime.Versioning;
using MediaBrowser.MediaEncoding.Encoder;
using Xunit;
namespace Jellyfin.MediaEncoding.Tests;
[SupportedOSPlatform("macos")]
public class ApplePlatformHelperTests
{
[Fact]
public void GetSysctlValue_CpuBrand_NotEmpty()
{
Assert.SkipUnless(OperatingSystem.IsMacOS(), "macOS-only test");
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);
}
}
|