We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9781e02 commit 5aff6cdCopy full SHA for 5aff6cd
lib/std/posix/test.zig
@@ -980,3 +980,12 @@ const CommonOpenFlags = packed struct {
980
return result;
981
}
982
};
983
+
984
+test "kill 0 can be used to perform checks of sending signal" {
985
+ if (native_os == .wasi) return error.SkipZigTest;
986
+ if (native_os == .windows) return error.SkipZigTest;
987
+ posix.kill(posix.getpid(), .INVAL) catch |err| switch (err) {
988
+ posix.KillError.PermissionDenied => return,
989
+ else => return err,
990
+ };
991
+}
0 commit comments