зеркало из https://github.com/golang/pkgsite.git
internal/memory: skip TestRead on non-linux platforms
Don't assume that /proc/meminfo exists on non-Linux platforms. For #61209 Change-Id: I77cd968004f6f7cacb20b926a3cf8fc60e2c9525 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/508296 Run-TryBot: Michael Matloob <matloob@google.com> Reviewed-by: Robert Findley <rfindley@google.com> TryBot-Bypass: Michael Matloob <matloob@google.com>
This commit is contained in:
Родитель
127f46c73b
Коммит
17701c53fe
|
@ -10,8 +10,8 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestRead(t *testing.T) {
|
func TestRead(t *testing.T) {
|
||||||
if runtime.GOOS == "darwin" {
|
if runtime.GOOS != "linux" {
|
||||||
t.Skip("darwin has no /proc/meminfo")
|
t.Skip("don't assume /proc/meminfo exists on non-linux platforms")
|
||||||
}
|
}
|
||||||
_, err := ReadSystemStats()
|
_, err := ReadSystemStats()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче