Uh oh!
There was an error while loading. Please reload this page.
modify fds-are-cloexec test to open a file that exists - #35885
Conversation
retep998
commented
Aug 22, 2016
I'd argue it is not. |
durka
commented
Aug 22, 2016
Maybe the test should create a temporary file, close it, and then open it again? |
nagisa
commented
Aug 22, 2016
If such an assumption was “good enough” for the version opening Makefile, I feel it is good enough for the new version as well. You could also use any of the non-autogenerated files from project root, like |
eddyb
commented
Aug 23, 2016
@bors r=nagisa |
bors
commented
Aug 23, 2016
📌 Commit b40754f has been approved by |
modify fds-are-cloexec test to open a file that exists Fixesrust-lang#35753. Is it a valid assumption that the current directory is always the root of the repo when the tests are run? r? @nagisa
modify fds-are-cloexec test to open a file that exists Fixesrust-lang#35753. Is it a valid assumption that the current directory is always the root of the repo when the tests are run? r? @nagisa
modify fds-are-cloexec test to open a file that exists Fixesrust-lang#35753. Is it a valid assumption that the current directory is always the root of the repo when the tests are run? r? @nagisa
Manishearth
commented
Aug 25, 2016
https://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/10287/steps/test/logs/stdio |
durka
commented
Aug 25, 2016
I guess... it's not a valid assumption? Is that a non-rustbuild builder? On Aug 25, 2016 07:36, "Manish Goregaokar" notifications@github.com wrote:
|
nagisa
commented
Aug 25, 2016
Thats make. It should operate The same way since there can only ever be one Anyhow, if a path to the test does not work, then in order to avoid writing On Aug 25, 2016 4:53 PM, "Alex Burka" notifications@github.com wrote:
|
arielb1
commented
Aug 25, 2016
This will break out-of-tree builds. |
durka
commented
Aug 25, 2016
@arielb1 I guess they didn't work before either. |
durka
commented
Aug 25, 2016
The test already doesn't run on Windows, how about opening /dev/null? |
Out-of-tree builds did work before. I was using them all the time. I imagine you could open |
durka
commented
Aug 25, 2016
Well, it was assuming that the Makefile was in the current directory. I On Thu, Aug 25, 2016 at 12:33 PM, arielb1 notifications@github.com wrote:
|
arielb1
commented
Aug 25, 2016
The way you do an out-of-tree build is That way, you end up with a |
arielb1
commented
Aug 25, 2016
You can do |
durka
commented
Aug 25, 2016
Let's try that. |
arielb1
commented
Aug 25, 2016
@bors r+ I don't want to rollup this |
bors
commented
Aug 25, 2016
📌 Commit b2cd3e5 has been approved by |
Fixes#35753.
Is it a valid assumption that the current directory is always the root of the repo when the tests are run?
r? @nagisa