From 345111b5c0a164190c90a1134a8c8b801792759d Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Wed, 21 Feb 2024 16:37:36 +0100 Subject: prog: fix TestCreateResource tests They used to depend on the side effects of BuildChoiceTable(). --- prog/resources_test.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'prog') diff --git a/prog/resources_test.go b/prog/resources_test.go index c4da48e1e..aa43580a1 100644 --- a/prog/resources_test.go +++ b/prog/resources_test.go @@ -176,6 +176,9 @@ func testCreateResource(t *testing.T, target *Target, calls map[*Syscall]bool, r r.inGenerateResource = true ct := target.BuildChoiceTable(nil, calls) for call := range calls { + if call.Attrs.Disabled { + continue + } t.Logf("testing call %v", call.Name) ForeachCallType(call, func(typ Type, ctx *TypeCtx) { if res, ok := typ.(*ResourceType); ok && ctx.Dir != DirOut { -- cgit mrf-deployment