Add test verifying that full pipe path is less than maximum pipe path length on macos

This commit is contained in:
Malte Rosenbjerg 2025-10-17 19:47:41 +02:00
parent c0b5e8e52f
commit f0b5859afd

View file

@ -1,6 +1,7 @@
using System.Drawing; using System.Drawing;
using FFMpegCore.Arguments; using FFMpegCore.Arguments;
using FFMpegCore.Enums; using FFMpegCore.Enums;
using FFMpegCore.Pipes;
namespace FFMpegCore.Test; namespace FFMpegCore.Test;
@ -703,4 +704,18 @@ public class ArgumentBuilderTest
var arg = new AudibleEncryptionKeyArgument("62689101"); var arg = new AudibleEncryptionKeyArgument("62689101");
Assert.AreEqual("-activation_bytes 62689101", arg.Text); Assert.AreEqual("-activation_bytes 62689101", arg.Text);
} }
[TestMethod]
public void InputPipe_MaxLength_ShorterThanMacOsMax()
{
var pipePath = new InputPipeArgument(new StreamPipeSource(Stream.Null)).PipePath;
Assert.IsLessThan(104, pipePath.Length);
}
[TestMethod]
public void OutputPipe_MaxLength_ShorterThanMacOsMax()
{
var pipePath = new OutputPipeArgument(new StreamPipeSink(Stream.Null)).PipePath;
Assert.IsLessThan(104, pipePath.Length);
}
} }