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

Test runner fails if /tmp is mounted with "noexec" #12558

Closed
felixc opened this issue Feb 26, 2014 · 0 comments
Closed

Test runner fails if /tmp is mounted with "noexec" #12558

felixc opened this issue Feb 26, 2014 · 0 comments

Comments

@felixc
Copy link
Contributor

felixc commented Feb 26, 2014

When running make check, it failed during the doc-std target with 244 failures and 0 successes. All of them produced an error of the form "'couldn't run the test: permission denied', [snip]/rust/src/librustdoc/test.rs:131".

Investigating this further, it turns out to be because rustdoc's test.rs attempts to create a file in a temporary directory and then execute it. By default on my platform, this happens in /tmp. My /tmp, however, is mounted with the "noexec" option that prevents executing files from it.

Arguably this is just user error on my part for configuring things this way, but I don't think it's an uncommon setup. It was also quite a mysterious way for things to fail. Perhaps the test runner could check for this and fail more usefully?

In the meantime, a workaround is to run the tests with the environment variable TMPDIR set to something else.

flip1995 pushed a commit to flip1995/rust that referenced this issue Apr 4, 2024
[`let_and_return`]: avoid linting when code between last stmt and return expr is cfg'd out

Fixes rust-lang#9150

This moves `span_contains_cfg` to utils and starts using it in `let_and_return` as well.

changelog: [`let_and_return`]: avoid linting when code between the last statement and the final return expression is `#[cfg]`ed out
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 a pull request may close this issue.

1 participant