Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fmt: TestCountMallocs fails when -race=true -short=false #10778

Closed
mikioh opened this issue May 11, 2015 · 0 comments
Closed

fmt: TestCountMallocs fails when -race=true -short=false #10778

mikioh opened this issue May 11, 2015 · 0 comments
Labels
FrozenDueToAge Testing An issue that has been verified to require only test changes, not just a test failure.
Milestone

Comments

@mikioh
Copy link
Contributor

mikioh commented May 11, 2015

go test -race=true -short=false
--- FAIL: TestCountMallocs (0.00s)
    fmt_test.go:961: Sprintf(""): got 1 allocs, want <=0
    fmt_test.go:961: Sprintf("xxx"): got 3 allocs, want <=1
    fmt_test.go:961: Sprintf("%x"): got 4 allocs, want <=2
    fmt_test.go:961: Sprintf("%s"): got 4 allocs, want <=2
    fmt_test.go:961: Sprintf("%x %x"): got 5 allocs, want <=3
    fmt_test.go:961: Sprintf("%g"): got 4 allocs, want <=2
    fmt_test.go:961: Fprintf(buf, "%s"): got 3 allocs, want <=1
    fmt_test.go:961: Fprintf(buf, "%x %x %x"): got 2 allocs, want <=0
FAIL
@mikioh mikioh added the Testing An issue that has been verified to require only test changes, not just a test failure. label May 11, 2015
@mikioh mikioh added this to the Go1.5 milestone May 23, 2015
@golang golang locked and limited conversation to collaborators Jun 25, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge Testing An issue that has been verified to require only test changes, not just a test failure.
Projects
None yet
Development

No branches or pull requests

2 participants