mirror of
https://github.com/u2takey/ffmpeg-go.git
synced 2025-10-05 16:06:52 +08:00
Move platform-specific code under build tags; fix corresponding tests
This commit is contained in:
14
ffmpeg_linux_test.go
Normal file
14
ffmpeg_linux_test.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package ffmpeg_go
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func TestCompileWithOptions(t *testing.T) {
|
||||
out := Input("dummy.mp4").Output("dummy2.mp4")
|
||||
cmd := out.Compile(SeparateProcessGroup())
|
||||
assert.Equal(t, cmd.SysProcAttr.Pgid, 0)
|
||||
assert.True(t, cmd.SysProcAttr.Setpgid)
|
||||
}
|
Reference in New Issue
Block a user