summaryrefslogtreecommitdiff
path: root/integrationtests/ioctl_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'integrationtests/ioctl_test.go')
-rw-r--r--integrationtests/ioctl_test.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/integrationtests/ioctl_test.go b/integrationtests/ioctl_test.go
new file mode 100644
index 0000000..9dbebf7
--- /dev/null
+++ b/integrationtests/ioctl_test.go
@@ -0,0 +1,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,
+ },
+ })
+}