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

[Help] Duplicate lang item in crate core when execute cargo ktest on example/test_framework #250

Closed
AmberCrafter opened this issue Aug 22, 2022 · 1 comment

Comments

@AmberCrafter
Copy link

AmberCrafter commented Aug 22, 2022

I'm try to use cargo ktest and run into error likes below.
I don't have any idea how to solve it... (Did i miss somethings?)
(Note. It's work on cargo krun)

custom code: https://github.com/AmberCrafter/rustos

Here is my cross test results

Platform example/test_framework (edition: 2018) custom_code (edition: 2021)
Local failed (like below) failed
Remote pass failed

source code: bootloader/example/test_framework
command: cargo ktest

platform & environment:
Local:
intel core i7-1165G7
windows 11 (21H2)
wsl2
cargo version: cargo 1.64.0-nightly (85b500cca 2022-07-24)
rustc version: rustc 1.64.0-nightly (3924dac7b 2022-07-29)

Remote:
Github codespace with .devcontainer

image

Full cargo message log: https://gist.github.com/AmberCrafter/90488d25a14623dbec988822ac266f05

@AmberCrafter
Copy link
Author

Update:
Base on: rust-lang/cargo#7359
When I remove panic=abort from cargo.toml, it works.

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

1 participant