Commit 9dec310826

Joran Dirk Greef <joran@ronomon.com>
2020-11-02 08:52:33
Debug unhandled errno
1 parent c910f03
Changed files (1)
lib
std
os
linux
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);