mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2025-12-14 01:55:45 +00:00
Add test verifying that full pipe path is less than maximum pipe path length on macos
This commit is contained in:
parent
c0b5e8e52f
commit
f0b5859afd
1 changed files with 15 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
|||
using System.Drawing;
|
||||
using FFMpegCore.Arguments;
|
||||
using FFMpegCore.Enums;
|
||||
using FFMpegCore.Pipes;
|
||||
|
||||
namespace FFMpegCore.Test;
|
||||
|
||||
|
|
@ -703,4 +704,18 @@ public class ArgumentBuilderTest
|
|||
var arg = new AudibleEncryptionKeyArgument("62689101");
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue