Skip to content

Commit 464e80e

Browse files
committed
Fix test framework
1 parent cbfc6be commit 464e80e

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

Cargo.lock

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/test_kernels/default_settings/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ edition = "2018"
66

77
[dependencies]
88
bootloader = { path = "../../.." }
9-
x86_64 = { git = "https://github.com/rust-osdev/x86_64.git", branch = "nop" }
9+
x86_64 = "0.12.2"

tests/test_kernels/default_settings/src/bin/basic_boot.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use kernel::{exit_qemu, QemuExitCode};
77

88
entry_point!(kernel_main);
99

10-
fn kernel_main(_boot_info: &'static BootInfo) -> ! {
10+
fn kernel_main(_boot_info: &'static mut BootInfo) -> ! {
1111
exit_qemu(QemuExitCode::Success);
1212
}
1313

tests/test_kernels/default_settings/src/bin/should_panic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use kernel::{exit_qemu, QemuExitCode};
77

88
entry_point!(kernel_main);
99

10-
fn kernel_main(_boot_info: &'static BootInfo) -> ! {
10+
fn kernel_main(_boot_info: &'static mut BootInfo) -> ! {
1111
panic!();
1212
}
1313

0 commit comments

Comments
 (0)