Merge pull request #86 from SamTebbs33/feature/import-syscall-tests
Import syscall tests into x86/arch.zig
This commit is contained in:
commit
a7bb3e1d01
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 "" {
|
test "" {
|
||||||
_ = @import("gdt.zig");
|
_ = @import("gdt.zig");
|
||||||
_ = @import("idt.zig");
|
_ = @import("idt.zig");
|
||||||
|
_ = @import("syscalls.zig");
|
||||||
}
|
}
|
||||||
|
|
|
@ -250,8 +250,8 @@ fn testHandler5(ctx: *arch.InterruptContext) u32 {
|
||||||
}
|
}
|
||||||
|
|
||||||
test "registerSyscall returns SyscallExists" {
|
test "registerSyscall returns SyscallExists" {
|
||||||
registerSyscall(123, testHandler) catch unreachable;
|
registerSyscall(123, testHandler0) catch unreachable;
|
||||||
registerSyscall(123, testHandler) catch |err| {
|
registerSyscall(123, testHandler0) catch |err| {
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
assert(false);
|
assert(false);
|
||||||
|
|
Loading…
Reference in a new issue