diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2020-03-17 08:05:11 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-03-17 21:19:13 +0100 |
| commit | 8bec3911ad478b6fef8df96e4dc89f8080229133 (patch) | |
| tree | f7219cc336de08b708b776722588e090e745130a /pkg/compiler/consts_test.go | |
| parent | 924f7606047a430a9b313c135b782e1e8f852bec (diff) | |
pkg/compiler: add tests for generation phase
Add errors3.txt with tests for errors that are produced during generation phase.
Refactor tests to reduce duplication.
Tidy struct/union size errors: better locations and make testable.
Diffstat (limited to 'pkg/compiler/consts_test.go')
| -rw-r--r-- | pkg/compiler/consts_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/compiler/consts_test.go b/pkg/compiler/consts_test.go index 69810c877..77a124b04 100644 --- a/pkg/compiler/consts_test.go +++ b/pkg/compiler/consts_test.go @@ -66,10 +66,10 @@ func TestConstErrors(t *testing.T) { em := ast.NewErrorMatcher(t, filepath.Join("testdata", name)) desc := ast.Parse(em.Data, name, em.ErrorHandler) if desc == nil { - em.DumpErrors(t) + em.DumpErrors() t.Fatalf("parsing failed") } target := targets.List["linux"]["amd64"] ExtractConsts(desc, target, em.ErrorHandler) - em.Check(t) + em.Check() } |
