Import syscall tests into x86/arch.zig
This commit is contained in:
parent
048284e305
commit
f11bcd88f3
2 changed files with 3 additions and 2 deletions
|
@ -245,4 +245,5 @@ pub fn init(mem_profile: *const MemProfile, allocator: *Allocator, comptime opti
|
|||
test "" {
|
||||
_ = @import("gdt.zig");
|
||||
_ = @import("idt.zig");
|
||||
_ = @import("syscalls.zig");
|
||||
}
|
||||
|
|
|
@ -250,8 +250,8 @@ fn testHandler5(ctx: *arch.InterruptContext) u32 {
|
|||
}
|
||||
|
||||
test "registerSyscall returns SyscallExists" {
|
||||
registerSyscall(123, testHandler) catch unreachable;
|
||||
registerSyscall(123, testHandler) catch |err| {
|
||||
registerSyscall(123, testHandler0) catch unreachable;
|
||||
registerSyscall(123, testHandler0) catch |err| {
|
||||
return;
|
||||
};
|
||||
assert(false);
|
||||
|
|
Loading…
Add table
Reference in a new issue