diff options
Diffstat (limited to 'integrationtests/truncate_test.go')
| -rw-r--r-- | integrationtests/truncate_test.go | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/integrationtests/truncate_test.go b/integrationtests/truncate_test.go new file mode 100644 index 0000000..9b94eed --- /dev/null +++ b/integrationtests/truncate_test.go @@ -0,0 +1,25 @@ +package integrationtests + +import "testing" + +func TestTruncateBasic(t *testing.T) { + runScenario(t, "truncate-basic", []ExpectedEvent{ + { + PathContains: "truncfile.txt", + Tracepoint: "enter_truncate", + Comm: "ioworkload", + MinCount: 1, + }, + }) +} + +func TestTruncateFtruncate(t *testing.T) { + runScenario(t, "truncate-ftruncate", []ExpectedEvent{ + { + PathContains: "ftruncfile.txt", + Tracepoint: "enter_ftruncate", + Comm: "ioworkload", + MinCount: 1, + }, + }) +} |
