diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2024-02-21 16:37:36 +0100 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2024-02-21 16:05:45 +0000 |
| commit | 345111b5c0a164190c90a1134a8c8b801792759d (patch) | |
| tree | 586855ba2d036e927aa45270976e42ddfa8be24f /prog | |
| parent | 58f4989b28c8af9cb9e4a3c07b7412366bd27457 (diff) | |
prog: fix TestCreateResource tests
They used to depend on the side effects of BuildChoiceTable().
Diffstat (limited to 'prog')
| -rw-r--r-- | prog/resources_test.go | 3 |
1 files changed, 3 insertions, 0 deletions
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 { |
