blob: 9dbebf7cba5d14e31777f48248b0ae0618fcc409 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
package integrationtests
import "testing"
// TestIoctlBasic asserts that the ioctl-basic scenario deterministically fires
// the enter_ioctl tracepoint. ioctl is KindFd (fd@arg0); the fd resolves to the
// scenario's temp file, so we assert the path as well. Mirrors fcntl_test.go.
func TestIoctlBasic(t *testing.T) {
runScenario(t, "ioctl-basic", []ExpectedEvent{
{
PathContains: "ioctlfile.txt",
Tracepoint: "enter_ioctl",
Comm: "ioworkload",
MinCount: 1,
},
})
}
|