diff options
| author | Josh Bleecher Snyder <josharian@gmail.com> | 2019-03-27 18:00:24 -0700 |
|---|---|---|
| committer | Josh Bleecher Snyder <josharian@gmail.com> | 2019-03-28 02:06:19 +0000 |
| commit | 722b1abbcf842be5276c0d2ebde6aa076a4f4687 (patch) | |
| tree | 95ce948d3c7bdab830e7d2c9042ab34cb07101bf /src/runtime/runtime-lldb_test.go | |
| parent | 94c656ff7a2dcdb615688f015197dc85c90c8070 (diff) | |
| download | go-722b1abbcf842be5276c0d2ebde6aa076a4f4687.tar.xz | |
runtime: fix TestLldbPython test with modules enabled
Fixes #30751
Change-Id: I1f783578df499d52eaec3690303671661c8bf5fb
Reviewed-on: https://go-review.googlesource.com/c/go/+/169725
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/runtime/runtime-lldb_test.go')
| -rw-r--r-- | src/runtime/runtime-lldb_test.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/runtime/runtime-lldb_test.go b/src/runtime/runtime-lldb_test.go index fe3a0eb90d..c7b769ce83 100644 --- a/src/runtime/runtime-lldb_test.go +++ b/src/runtime/runtime-lldb_test.go @@ -151,7 +151,13 @@ func TestLldbPython(t *testing.T) { src := filepath.Join(dir, "main.go") err = ioutil.WriteFile(src, []byte(lldbHelloSource), 0644) if err != nil { - t.Fatalf("failed to create file: %v", err) + t.Fatalf("failed to create src file: %v", err) + } + + mod := filepath.Join(dir, "go.mod") + err = ioutil.WriteFile(mod, []byte("module lldbtest"), 0644) + if err != nil { + t.Fatalf("failed to create mod file: %v", err) } // As of 2018-07-17, lldb doesn't support compressed DWARF, so |
