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

runtime: should testSchedQueue[,Steal]Test be in export_test.go instead of proc.go? #14796

Closed
odeke-em opened this issue Mar 12, 2016 · 4 comments

Comments

@odeke-em
Copy link
Member

Please answer these questions before submitting your issue. Thanks!

  1. What version of Go are you using (go version)?
    go version devel +060a2ba Fri Mar 4 06:30:25 2016 +0000 darwin/amd64
  2. What operating system and processor architecture are you using (go env)?
    GOARCH="amd64"
    GOBIN="/Users/emmanuelodeke/go/bin"
    GOEXE=""
    GOHOSTARCH="amd64"
    GOHOSTOS="darwin"
    GOOS="darwin"
    GOPATH="/Users/emmanuelodeke/go"
    GORACE=""
    GOROOT="/Users/emmanuelodeke/go/src/go.googlesource.com/go"
    GOTOOLDIR="/Users/emmanuelodeke/go/src/go.googlesource.com/go/pkg/tool/darwin_amd64"
    CC="clang"
    GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -gno-record-gcc-switches -fno-common"
    CXX="clang++"
    CGO_ENABLED="1"
  3. What did you do?
    Read the source code in runtime/proc.go and runtime/export_test.go.
  4. What did you expect to see?
    Functions testSchedQueueTest and testSchedQueueStealTest should be in runtime/export_test.go?
  5. What did you see instead?
    The functions testSchedQueueTest and testSchedQueueStealTest are only used once in runtime/export_test.go yet are in runtime/proc.go
@odeke-em
Copy link
Member Author

If them being in proc.go was unintended, I can submit a CL real quick to move them to the suggested location.

@bradfitz
Copy link
Contributor

I thought this might've once been called at runtime to test the system it was being run on, but that doesn't appear to be the case. Starting at its creation in rev 353ce60, it's doesn't look like it was ever used like that.

Sure, you can move it to export_test.go.

@odeke-em
Copy link
Member Author

Awesome. Thanks. CL mailed https://go-review.googlesource.com/20640.

@gopherbot
Copy link

CL https://golang.org/cl/20640 mentions this issue.

@golang golang locked and limited conversation to collaborators Mar 13, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants