mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime/pprof: continued attempt to deflake the VMInfo test.
This change catches an additional error message to trigger skipping the test when the underlying system is failing. Fixes #62352 Change-Id: I5c12b20f3e9023597ff89fc905c0646a80ec4811 Reviewed-on: https://go-review.googlesource.com/c/go/+/637995 Reviewed-by: Cherry Mui <cherryyz@google.com> Auto-Submit: Michael Pratt <mpratt@google.com> Reviewed-by: Michael Pratt <mpratt@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
parent
45f49139f5
commit
669d87a935
1 changed files with 1 additions and 1 deletions
|
|
@ -97,7 +97,7 @@ func useVMMap(t *testing.T) (hi, lo uint64, retryable bool, err error) {
|
||||||
t.Logf("vmmap output: %s", out)
|
t.Logf("vmmap output: %s", out)
|
||||||
if ee, ok := cmdErr.(*exec.ExitError); ok && len(ee.Stderr) > 0 {
|
if ee, ok := cmdErr.(*exec.ExitError); ok && len(ee.Stderr) > 0 {
|
||||||
t.Logf("%v: %v\n%s", cmd, cmdErr, ee.Stderr)
|
t.Logf("%v: %v\n%s", cmd, cmdErr, ee.Stderr)
|
||||||
if testing.Short() && strings.Contains(string(ee.Stderr), "No process corpse slots currently available, waiting to get one") {
|
if testing.Short() && (strings.Contains(string(ee.Stderr), "No process corpse slots currently available, waiting to get one") || strings.Contains(string(ee.Stderr), "Failed to generate corpse from the process")) {
|
||||||
t.Skipf("Skipping knwn flake in short test mode")
|
t.Skipf("Skipping knwn flake in short test mode")
|
||||||
}
|
}
|
||||||
retryable = bytes.Contains(ee.Stderr, []byte("resource shortage"))
|
retryable = bytes.Contains(ee.Stderr, []byte("resource shortage"))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue