Skip to content

Commit

Permalink
Add rlibc dependency where needed to example kernels
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-opp committed Jul 17, 2020
1 parent 8271e9e commit b3aaf4f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions example-kernels/runner-doctest/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ edition = "2018"
[dependencies]
bootloader = "0.9.7"
x86_64 = "0.11.0"
rlibc = "1.0.0"

[package.metadata.bootimage]
test-success-exit-code = 33 # (0x10 << 1) | 1
Expand Down
2 changes: 2 additions & 0 deletions example-kernels/runner-doctest/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
#![test_runner(crate::test_runner)]
#![reexport_test_harness_main = "test_main"]

extern crate rlibc;

/// add two numbers
///
/// ```
Expand Down
1 change: 1 addition & 0 deletions example-kernels/runner-test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ harness = false
[dependencies]
bootloader = "0.9.7"
x86_64 = "0.11.0"
rlibc = "1.0.0"

[package.metadata.bootimage]
test-success-exit-code = 33 # (0x10 << 1) | 1
Expand Down
2 changes: 2 additions & 0 deletions example-kernels/runner-test/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
#![test_runner(crate::test_runner)]
#![reexport_test_harness_main = "test_main"]

extern crate rlibc;

pub fn test_runner(tests: &[&dyn Fn()]) {
for test in tests.iter() {
test();
Expand Down

0 comments on commit b3aaf4f

Please sign in to comment.