dwarf/line: fix TestDebugLinePrologueParser test for Go 1.14 (#1891)

Go 1.14 has more fake file names, apparently (also go fmt).
This commit is contained in:
Alessandro Arzilli 2020-02-27 05:38:31 +01:00 committed by GitHub
parent 7560c33819
commit 14733084a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -114,7 +114,7 @@ func testDebugLinePrologueParser(p string, t *testing.T) {
}
for _, ln := range dbl.Lookup {
if ln.Path == "<autogenerated>" {
if ln.Path == "<autogenerated>" || strings.HasPrefix(ln.Path, "<missing>_") || ln.Path == "_gomod_.go" {
continue
}
if _, err := os.Stat(ln.Path); err != nil {