mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-18 21:50:25 +01:00
Add regression test
This commit is contained in:
@@ -18,7 +18,7 @@ public static partial class ApplePlatformHelper
|
||||
{
|
||||
private static readonly string[] _av1DecodeBlacklistedCpuClass = ["M1", "M2"];
|
||||
|
||||
private static string GetSysctlValue(string name)
|
||||
internal static string GetSysctlValue(string name)
|
||||
{
|
||||
nuint length = 0;
|
||||
// Get length of the value
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
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");
|
||||
|
||||
Assert.NotEmpty(ApplePlatformHelper.GetSysctlValue("machdep.cpu.brand_string"));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user