From 84b9e352f214f067b40c48ca06d640dbc7e8aba4 Mon Sep 17 00:00:00 2001 From: Florent Revest Date: Thu, 19 Dec 2024 18:03:45 +0100 Subject: [PATCH] prog: make TestRotationCoverage faster Now that we added automatically generated syscalls to the Linux corpus, we added a lot of work to the TestRotationCoverage test. We can make it faster by skipping all automatically generated syscalls. --- prog/rotation_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prog/rotation_test.go b/prog/rotation_test.go index 43026d16e0dc..333b66c7553b 100644 --- a/prog/rotation_test.go +++ b/prog/rotation_test.go @@ -59,7 +59,7 @@ func TestRotationCoverage(t *testing.T) { calls := make(map[*Syscall]bool) counters := make(map[string]int) for _, call := range target.Syscalls { - if call.Attrs.Disabled { + if call.Attrs.Disabled || call.Attrs.Automatic { continue } calls[call] = true