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

cargo test doesn't work #160

Closed
est31 opened this issue Apr 13, 2017 · 2 comments
Closed

cargo test doesn't work #160

est31 opened this issue Apr 13, 2017 · 2 comments

Comments

@est31
Copy link
Member

est31 commented Apr 13, 2017

Trying to do cargo test gives me:

$ cargo test
    Updating registry `https://github.com/rust-lang/crates.io-index`
    Updating git repository `https://github.com/japaric/utest`
   Compiling compiler_builtins v0.1.0 (file://~/src/compiler-builtins)
error: couldn't read "~/src/compiler-builtins/target/debug/build/compiler_builtins-c8e6c3e61fa405d0/out/powidf2.rs": No such file or directory (os error 2)
 --> tests/powidf2.rs:8:1
  |
8 | include!(concat!(env!("OUT_DIR"), "/powidf2.rs"));
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: couldn't read "~/src/compiler-builtins/target/debug/build/compiler_builtins-c8e6c3e61fa405d0/out/moddi3.rs": No such file or directory (os error 2)
 --> tests/moddi3.rs:8:1
  |
8 | include!(concat!(env!("OUT_DIR"), "/moddi3.rs"));
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: couldn't read "~/src/compiler-builtins/target/debug/build/compiler_builtins-c8e6c3e61fa405d0/out/fixunsdfdi.rs": No such file or directory (os error 2)
 --> tests/fixunsdfdi.rs:8:1
  |
8 | include!(concat!(env!("OUT_DIR"), "/fixunsdfdi.rs"));
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: Could not compile `compiler_builtins`.
Build failed, waiting for other jobs to finish...
error: Could not compile `compiler_builtins`.
Build failed, waiting for other jobs to finish...
error: Could not compile `compiler_builtins`.
Build failed, waiting for other jobs to finish...
error: build failed
@est31
Copy link
Member Author

est31 commented Apr 13, 2017

Hmm apparently you need to do cargo test --no-default-features --features gen-tests.

@alexcrichton
Copy link
Member

This has since been fixed.

tgross35 pushed a commit to tgross35/compiler-builtins that referenced this issue Feb 23, 2025
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

No branches or pull requests

2 participants