Debug unhandled errno

master
Joran Dirk Greef 2020-11-02 09:52:33 +02:00
parent c910f03a7b
commit 9dec310826
1 changed files with 4 additions and 1 deletions

View File

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