Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
runtime: CgoPprof tests write to $HOME #16121
Please answer these questions before submitting your issue. Thanks!
1.7 beta 2
Ran the tests under a new-ish version of sbuild, which prevents writing to $HOME by setting it to /sbuild-nonexistent.
The tests pass.
They failed like this:
There a few ways this could be fixed I guess (only create that directory when it is about to be written into?) but the simplest would I think be to set PPROF_TMPDIR to TMPDIR (or /tmp) in the tests.