From 9dec3108260638dd81dd5110bcf87d58f6834d25 Mon Sep 17 00:00:00 2001 From: Joran Dirk Greef Date: Mon, 2 Nov 2020 09:52:33 +0200 Subject: [PATCH] Debug unhandled errno --- lib/std/os/linux/test.zig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/std/os/linux/test.zig b/lib/std/os/linux/test.zig index 24c96cdd70..e57ef3a6e4 100644 --- a/lib/std/os/linux/test.zig +++ b/lib/std/os/linux/test.zig @@ -24,7 +24,10 @@ test "fallocate" { 0 => {}, linux.ENOSYS => return error.SkipZigTest, linux.EOPNOTSUPP => return error.SkipZigTest, - else => unreachable, + else |errno| => { + std.debug.print("Unhandled Errno:" errno); + return error.SkipZigTest; + }, } expect((try file.stat()).size == len);