Skip to content

Commit

Permalink
debug/pe: correct TestImportTableInUnknownSection error message
Browse files Browse the repository at this point in the history
TestImportTableInUnknownSection uses kernel32.dll file, but the error
message mentions atmfd.dll. Adjust error message to match the test.

This change should have been part of CL 151137.

Updates golang#27904

Change-Id: Ifc31a12134b328472191122f8426ab6ed234fbd4
Reviewed-on: https://go-review.googlesource.com/c/151477
Run-TryBot: Alex Brainman <[email protected]>
TryBot-Result: Gobot Gobot <[email protected]>
Reviewed-by: Tobias Klauser <[email protected]>
  • Loading branch information
alexbrainman committed Nov 27, 2018
1 parent 41fd4c8 commit 22dbc96
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/debug/pe/file_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -605,9 +605,10 @@ func TestImportTableInUnknownSection(t *testing.T) {

// kernel32.dll import table is located in ".rdata" section,
// so it is good enough to test issue #16103.
path, err := exec.LookPath("kernel32.dll")
const filename = "kernel32.dll"
path, err := exec.LookPath(filename)
if err != nil {
t.Fatalf("unable to locate required file %q in search path: %s", "atmfd.dll", err)
t.Fatalf("unable to locate required file %q in search path: %s", filename, err)
}

f, err := Open(path)
Expand Down

0 comments on commit 22dbc96

Please sign in to comment.