summaryrefslogtreecommitdiff
path: root/internal/generate/classify_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-02-23 10:34:37 +0200
committerPaul Buetow <paul@buetow.org>2026-02-23 10:34:37 +0200
commita1eb580aa5b80e913dc722ccf97e42c6987152e8 (patch)
tree845b3da7d8d6a0d11e28dea1b82bbf39e0e401b4 /internal/generate/classify_test.go
parent9e7b820cfacb50299720b9d391de907d6f3fbdec (diff)
Add getcwd tracing support and stabilize comm propagation test
Diffstat (limited to 'internal/generate/classify_test.go')
-rw-r--r--internal/generate/classify_test.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/internal/generate/classify_test.go b/internal/generate/classify_test.go
index 8d6f9c2..b223210 100644
--- a/internal/generate/classify_test.go
+++ b/internal/generate/classify_test.go
@@ -160,6 +160,13 @@ func TestClassifyNullSyslog(t *testing.T) {
}
}
+func TestClassifyNullGetcwd(t *testing.T) {
+ r := classifyFromData(t, FormatGetcwd)
+ if r.Kind != KindNull {
+ t.Errorf("getcwd: got kind %d, want KindNull", r.Kind)
+ }
+}
+
func TestClassifyNullIoUring(t *testing.T) {
r := classifyFromData(t, FormatIoUringEnter)
if r.Kind != KindFd {
@@ -300,6 +307,7 @@ func TestClassifySyscallPairAccepted(t *testing.T) {
{"fcntl", FormatFcntl, FormatExitFcntl, KindFcntl},
{"sync", FormatSync, FormatExitSync, KindNull},
{"msync", FormatMsync, FormatExitMsync, KindNull},
+ {"getcwd", FormatGetcwd, FormatExitGetcwd, KindNull},
{"copy_file_range", FormatCopyFileRange, FormatExitCopyFileRange, KindFd},
{"syslog", FormatSyslog, FormatExitSyslog, KindNull},
{"open_by_handle_at", FormatOpenByHandleAt, FormatExitOpenByHandleAt, KindOpenByHandleAt},