Files
go2rtc/pkg/ioctl/ioctl_test.go
2025-04-21 20:17:52 +03:00

17 lines
296 B
Go

package ioctl
import (
"runtime"
"testing"
"github.com/stretchr/testify/require"
)
func TestIOR(t *testing.T) {
// #define SNDRV_PCM_IOCTL_INFO _IOR('A', 0x01, struct snd_pcm_info)
if runtime.GOARCH == "arm64" {
c := IOR('A', 0x01, 288)
require.Equal(t, uintptr(0x81204101), c)
}
}