diff options
Diffstat (limited to 'integrationtests/readwrite_test.go')
| -rw-r--r-- | integrationtests/readwrite_test.go | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/integrationtests/readwrite_test.go b/integrationtests/readwrite_test.go index 3770ae1..e7492ec 100644 --- a/integrationtests/readwrite_test.go +++ b/integrationtests/readwrite_test.go @@ -62,3 +62,47 @@ func TestReadwriteWritev(t *testing.T) { }, }) } + +func TestReadwriteWronlyRead(t *testing.T) { + runScenario(t, "readwrite-wronly-read", []ExpectedEvent{ + { + PathContains: "wronlyfile.txt", + Tracepoint: "enter_read", + Comm: "ioworkload", + MinCount: 1, + }, + }) +} + +func TestReadwriteRdonlyWrite(t *testing.T) { + runScenario(t, "readwrite-rdonly-write", []ExpectedEvent{ + { + PathContains: "rdonlywritefile.txt", + Tracepoint: "enter_write", + Comm: "ioworkload", + MinCount: 1, + }, + }) +} + +func TestReadwritePreadInvalid(t *testing.T) { + runScenario(t, "readwrite-pread-invalid", []ExpectedEvent{ + { + PathContains: "preadinvalid.txt", + Tracepoint: "enter_pread64", + Comm: "ioworkload", + MinCount: 1, + }, + }) +} + +func TestReadwritePwriteInvalid(t *testing.T) { + runScenario(t, "readwrite-pwrite-invalid", []ExpectedEvent{ + { + PathContains: "pwriteinvalid.txt", + Tracepoint: "enter_pwrite64", + Comm: "ioworkload", + MinCount: 1, + }, + }) +} |
