mirror of
https://github.com/go-delve/delve.git
synced 2025-10-28 04:35:19 +08:00
*: fix various test problems with go1.25 (#3946)
- disable dwz test if it fails because of dwarf5 - fix TestExamineMemoryCmd, which made unwarranted assumptions about memory
This commit is contained in:
committed by
GitHub
parent
fc6a439f22
commit
486574cb65
@ -205,7 +205,7 @@ func withCoreFile(t *testing.T, name, args string) *proc.TargetGroup {
|
||||
if buildMode == "pie" {
|
||||
buildFlags = test.BuildModePIE
|
||||
}
|
||||
fix := test.BuildFixture(name, buildFlags)
|
||||
fix := test.BuildFixture(t, name, buildFlags)
|
||||
bashCmd := fmt.Sprintf("cd %v && ulimit -c unlimited && GOTRACEBACK=crash %v %s", tempDir, fix.Path, args)
|
||||
exec.Command("bash", "-c", bashCmd).Run()
|
||||
cores, err := filepath.Glob(path.Join(tempDir, "core*"))
|
||||
@ -464,7 +464,7 @@ func TestMinidump(t *testing.T) {
|
||||
if buildMode == "pie" {
|
||||
buildFlags = test.BuildModePIE
|
||||
}
|
||||
fix := test.BuildFixture("sleep", buildFlags)
|
||||
fix := test.BuildFixture(t, "sleep", buildFlags)
|
||||
mdmpPath := procdump(t, fix.Path)
|
||||
|
||||
grp, err := OpenCore(mdmpPath, fix.Path, []string{})
|
||||
|
||||
Reference in New Issue
Block a user