diff options
Diffstat (limited to 'src/tests/ktests/breakpoint/test.c')
-rw-r--r-- | src/tests/ktests/breakpoint/test.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/tests/ktests/breakpoint/test.c b/src/tests/ktests/breakpoint/test.c new file mode 100644 index 0000000..cd577e0 --- /dev/null +++ b/src/tests/ktests/breakpoint/test.c @@ -0,0 +1,13 @@ + +void test_breakpoint() { + BEGIN_TEST("breakpoint-test"); + + asm volatile("int $0x3"); // test breakpoint + + TEST_OK; +} + +#undef TEST_PLACEHOLDER_AFTER_IDT +#define TEST_PLACEHOLDER_AFTER_IDT { test_breakpoint(); } + +/* vim: set ts=4 sw=4 tw=0 noet :*/ |