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>
This commit is contained in:
Josh Bleecher Snyder 2019-03-27 18:00:24 -07:00
parent 94c656ff7a
commit 722b1abbcf
1 changed files with 7 additions and 1 deletions

View File

@ -151,7 +151,13 @@ func TestLldbPython(t *testing.T) {
src := filepath.Join(dir, "main.go") src := filepath.Join(dir, "main.go")
err = ioutil.WriteFile(src, []byte(lldbHelloSource), 0644) err = ioutil.WriteFile(src, []byte(lldbHelloSource), 0644)
if err != nil { 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 // As of 2018-07-17, lldb doesn't support compressed DWARF, so