mirror of https://github.com/golang/go.git
fail the test when the PE header is invalid
This commit is contained in:
parent
7142b89c7a
commit
479ebc140a
|
|
@ -287,7 +287,7 @@ func TestIssue54968(t *testing.T) {
|
|||
data := buf.Bytes()
|
||||
|
||||
if _, err := pe.NewFile(bytes.NewReader(data)); err != nil {
|
||||
t.Skipf("skipping invalid PE header: %s", err)
|
||||
t.Fatalf("need a valid PE header for the misaligned buildInfoMagic test: %s", err)
|
||||
}
|
||||
|
||||
// Place buildInfoMagic after the header.
|
||||
|
|
|
|||
Loading…
Reference in New Issue