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

rustpkg test claims to support --cfg but doesn't #10238

Closed
sfackler opened this issue Nov 2, 2013 · 1 comment · Fixed by #10282
Closed

rustpkg test claims to support --cfg but doesn't #10238

sfackler opened this issue Nov 2, 2013 · 1 comment · Fixed by #10282

Comments

@sfackler
Copy link
Member

sfackler commented Nov 2, 2013

 ❯ rustpkg -c travis test                                                                                                           [rust-postgres/master=]
WARNING: The Rust package manager is experimental and may be unstable
The --cfg option can only be used with the build or install commands.
rustpkg [options..] test

Build all test crates in the current directory with the test flag.
Then, run all the resulting test executables, redirecting the output
and exit code.

Options:
    -c, --cfg      Pass a cfg flag to the package script
@sfackler
Copy link
Member Author

sfackler commented Nov 3, 2013

cc @catamorphism

@bors bors closed this as completed in 4b9c5d6 Nov 5, 2013
Jarcho pushed a commit to Jarcho/rust that referenced this issue Feb 26, 2023
…dnet

Fix test function checker in `unwrap_used`, `expect_used`

After rust-lang#9686 , `unwrap` and `expect` in integration tests and raw test functions won't be allowed.

fixes rust-lang#10011
fixes rust-lang#10238
fixes rust-lang#10264

---

changelog: Fix: [`expect_used`], [`unwrap_used`], [`dbg_macro`], [`print_stdout`], [`print_stderr`]: No longer lint in test functions, if the related configuration is set
[rust-lang#10391](rust-lang/rust-clippy#10391)
<!-- changelog_checked -->
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