summaryrefslogtreecommitdiff
path: root/integrationtests/truncate_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'integrationtests/truncate_test.go')
-rw-r--r--integrationtests/truncate_test.go21
1 files changed, 21 insertions, 0 deletions
diff --git a/integrationtests/truncate_test.go b/integrationtests/truncate_test.go
index 9b94eed..7d3f12e 100644
--- a/integrationtests/truncate_test.go
+++ b/integrationtests/truncate_test.go
@@ -23,3 +23,24 @@ func TestTruncateFtruncate(t *testing.T) {
},
})
}
+
+func TestTruncateEnoent(t *testing.T) {
+ runScenario(t, "truncate-enoent", []ExpectedEvent{
+ {
+ PathContains: "truncate-enoent-missing.txt",
+ Tracepoint: "enter_truncate",
+ Comm: "ioworkload",
+ MinCount: 1,
+ },
+ })
+}
+
+func TestTruncateFtruncateEbadf(t *testing.T) {
+ runScenario(t, "truncate-ftruncate-ebadf", []ExpectedEvent{
+ {
+ Tracepoint: "enter_ftruncate",
+ Comm: "ioworkload",
+ MinCount: 1,
+ },
+ })
+}