| ... | @@ -621,6 +621,21 @@ test "dup & dup2" { | ... | @@ -621,6 +621,21 @@ test "dup & dup2" { |
| 621 | try testing.expectEqualStrings("dupdup2", try tmp.dir.readFile("os_dup_test", &buffer)); | 621 | try testing.expectEqualStrings("dupdup2", try tmp.dir.readFile("os_dup_test", &buffer)); |
| 622 | } | 622 | } |
| 623 | | 623 | |
| | 624 | test "getpid" { |
| | 625 | if (native_os == .wasi) return error.SkipZigTest; |
| | 626 | if (native_os == .windows) return error.SkipZigTest; |
| | 627 | |
| | 628 | try expect(posix.getpid() != 0); |
| | 629 | } |
| | 630 | |
| | 631 | test "getppid" { |
| | 632 | if (native_os == .wasi) return error.SkipZigTest; |
| | 633 | if (native_os == .windows) return error.SkipZigTest; |
| | 634 | if (native_os == .plan9 and !builtin.link_libc) return error.SkipZigTest; |
| | 635 | |
| | 636 | try expect(posix.getppid() >= 0); |
| | 637 | } |
| | 638 | |
| 624 | test "writev longer than IOV_MAX" { | 639 | test "writev longer than IOV_MAX" { |
| 625 | if (native_os == .windows or native_os == .wasi) return error.SkipZigTest; | 640 | if (native_os == .windows or native_os == .wasi) return error.SkipZigTest; |
| 626 | | 641 | |