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

Fix test failure on Mac #15

Closed
wants to merge 2 commits into from
Closed

Fix test failure on Mac #15

wants to merge 2 commits into from

Conversation

ghost
Copy link

@ghost ghost commented May 16, 2014

Previously cargo_compile_with_invalid_code failed on Mac OS X 10.9 because $TMPDIR was a child of a symlinked directory. As a result this the error messages from rustc used the real path while the test created the expected output using the symlink. This patch normalizes the root path used by the tests to use the real path.

The solution to this isn't as elegant as I'd like. Because fs::realpath isn't implemented in libstd (mozilla/rust #11857) I had to copy the implementation from librustc to avoid having to link librustc into the test binary.

This depends on #14.

zvms added 2 commits May 15, 2014 15:06
Previously cargo_compile_with_invalid_code failed on Mac OS X 10.9 because $TMPDIR was a child of a symlinked directory. As a result this the error messages from rustc used the real path while the test created the expected output using the symlink. This patch normalizes the root path used by the tests to use the real path.

The solution to this isn't as elegant as I'd like. Because fs::realpath isn't implemented in libstd (mozilla/rust #11857) I had to copy the implementation from librustc to avoid having to link librustc into the test binary.
@alexcrichton
Copy link
Member

Closing, the tests are passing now, but thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant