fail the test when the PE header is invalid

This commit is contained in:
Zeke Lu 2022-09-14 02:05:05 +08:00
parent 7142b89c7a
commit 479ebc140a
1 changed files with 1 additions and 1 deletions

View File

@ -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.