diff options
| author | Alex Brainman <alex.brainman@gmail.com> | 2018-11-27 20:01:50 +1100 |
|---|---|---|
| committer | Alex Brainman <alex.brainman@gmail.com> | 2018-11-27 09:26:16 +0000 |
| commit | 22dbc96d8a004bb78a0efd329d0f48b6f0a8b9e5 (patch) | |
| tree | 31fb87d98f4e207e3d4586097ec7133f4c93beec /src | |
| parent | 41fd4c88ad900765716d17c14eb1b48b553589e2 (diff) | |
| download | go-22dbc96d8a004bb78a0efd329d0f48b6f0a8b9e5.tar.xz | |
debug/pe: correct TestImportTableInUnknownSection error message
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 #27904
Change-Id: Ifc31a12134b328472191122f8426ab6ed234fbd4
Reviewed-on: https://go-review.googlesource.com/c/151477
Run-TryBot: Alex Brainman <alex.brainman@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/debug/pe/file_test.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/debug/pe/file_test.go b/src/debug/pe/file_test.go index 79c2241eb7..5b9fe521d2 100644 --- a/src/debug/pe/file_test.go +++ b/src/debug/pe/file_test.go @@ -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) |
