Add workflow stubtests for macos (#5384)

* Add macos to stubtest

* Add general darwin stubtest exception file

* Adding exceptions and platform ifs
This commit is contained in:
hatal175
2021-05-09 23:24:00 +03:00
committed by GitHub
parent 933787d5fe
commit 244fc622e6
15 changed files with 117 additions and 41 deletions

View File

@@ -16,12 +16,13 @@ class times_result(NamedTuple):
children_system: float
elapsed: float
class waitid_result(NamedTuple):
si_pid: int
si_uid: int
si_signo: int
si_status: int
si_code: int
if sys.platform != "darwin":
class waitid_result(NamedTuple):
si_pid: int
si_uid: int
si_signo: int
si_status: int
si_code: int
class sched_param(NamedTuple):
sched_priority: int
@@ -59,8 +60,9 @@ F_TEST: int
F_TLOCK: int
F_ULOCK: int
GRND_NONBLOCK: int
GRND_RANDOM: int
if sys.platform == "linux":
GRND_NONBLOCK: int
GRND_RANDOM: int
NGROUPS_MAX: int
O_APPEND: int
@@ -84,12 +86,13 @@ O_SYNC: int
O_TRUNC: int
O_WRONLY: int
POSIX_FADV_DONTNEED: int
POSIX_FADV_NOREUSE: int
POSIX_FADV_NORMAL: int
POSIX_FADV_RANDOM: int
POSIX_FADV_SEQUENTIAL: int
POSIX_FADV_WILLNEED: int
if sys.platform != "darwin":
POSIX_FADV_DONTNEED: int
POSIX_FADV_NOREUSE: int
POSIX_FADV_NORMAL: int
POSIX_FADV_RANDOM: int
POSIX_FADV_SEQUENTIAL: int
POSIX_FADV_WILLNEED: int
PRIO_PGRP: int
PRIO_PROCESS: int
@@ -99,7 +102,8 @@ P_ALL: int
P_PGID: int
P_PID: int
RTLD_DEEPBIND: int
if sys.platform == "linux":
RTLD_DEEPBIND: int
RTLD_GLOBAL: int
RTLD_LAZY: int
RTLD_LOCAL: int
@@ -107,13 +111,16 @@ RTLD_NODELETE: int
RTLD_NOLOAD: int
RTLD_NOW: int
SCHED_BATCH: int
SCHED_FIFO: int
SCHED_IDLE: int
SCHED_OTHER: int
SCHED_RESET_ON_FORK: int
SCHED_RR: int
if sys.platform == "linux":
SCHED_BATCH: int
SCHED_IDLE: int
if sys.platform != "darwin":
SCHED_RESET_ON_FORK: int
SEEK_DATA: int
SEEK_HOLE: int