summaryrefslogtreecommitdiff
path: root/internal/generate/classify_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/generate/classify_test.go')
-rw-r--r--internal/generate/classify_test.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/generate/classify_test.go b/internal/generate/classify_test.go
index f0278e2..838d643 100644
--- a/internal/generate/classify_test.go
+++ b/internal/generate/classify_test.go
@@ -1757,6 +1757,11 @@ func TestClassifySyscallPairEmitsAllFamilies(t *testing.T) {
{"listns", FormatListns, FormatExitListns, FamilyFS},
{"swapon", FormatSwapon, FormatExitSwapon, FamilyFS},
{"swapoff", FormatSwapoff, FormatExitSwapoff, FamilyFS},
+ // Bare sync() takes no args and returns void, but it DOES return (it is
+ // not noreturn like exit/exit_group), so it belongs in FamilyFS and must
+ // still emit a live exit handler. Its fd-taking siblings (syncfs/fsync/
+ // fdatasync/sync_file_range) are FamilyFS+KindFd and covered elsewhere.
+ {"sync", FormatSync, FormatExitSync, FamilyFS},
{"kill", FormatKill, FormatExitKill, FamilySignals},
{"exit_group", syntheticEnter("exit_group", 9316), syntheticExit("exit_group", 9315), FamilyProcess},
}