Merge pull request #86 from SamTebbs33/feature/import-syscall-tests

Import syscall tests into x86/arch.zig
This commit is contained in:
Sam Tebbs 2019-09-18 15:17:05 +01:00 committed by GitHub
commit a7bb3e1d01
2 changed files with 3 additions and 2 deletions

View file

@ -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");
} }

View file

@ -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);