Fix minor typo (#658)

Found a minor typo while following along.

Thank you for publishing this series, it's great!
This commit is contained in:
Chris Smith
2019-09-07 15:47:07 -07:00
committed by Philipp Oppermann
parent 54ad8ae792
commit afdc269323

View File

@@ -526,7 +526,7 @@ extern "x86-interrupt" fn test_double_fault_handler(
When the double fault handler is called, we exit QEMU with a success exit code, which marks the test as passed. Since integration tests are completely separate executables, we need to set `#![feature(abi_x86_interrupt)]` attribute again at the top of our test file.
Now we can run our test through `cargo xtest --test stack_overflow` (or `cargo xtest` to run all tests). As expected, we see the `stack_overflow... [ok]` output in the console. TRy to comment out the `set_stack_index` line: it should cause the test to fail.
Now we can run our test through `cargo xtest --test stack_overflow` (or `cargo xtest` to run all tests). As expected, we see the `stack_overflow... [ok]` output in the console. Try to comment out the `set_stack_index` line: it should cause the test to fail.
## Summary
In this post we learned what a double fault is and under which conditions it occurs. We added a basic double fault handler that prints an error message and added an integration test for it.