Contributes towards #30978
Contributes towards #30978
pthread_spin_* #31990
GasInfinity/zig:pthread-spin into master Contributes towards #30978
Looks good
@ -0,0 +6,4 @@
consttesting=std.testing;
test"pthread_spinlock_t"{
if(builtin.target.os.tag.isDarwin())returnerror.SkipZigTest;// Darwin doesn't have `pthread_spin_*`
Prefer a simple return; for cases where the target libc doesn't have the API being tested. I know we haven't historically been consistent about this elsewhere, but when porting the libc tests to test/c/, I tried to make sure that error.SkipZigTest is only used for unexpected failures.
historically this is why many test runners differentiate between Skip and Todo.
Todo means it should work but does not.
Skip means it's not applicable.
eaba74128c
d6b25ef770
d6b25ef770
61cd38e8ac
pthread_spin_* definitions for the BSDs in std.c
* each BSD has a different one
* `pthread_mutex_*` and friends are also invalid then but they're not currently tested (and there's no wasi prong in `pthread_mutex_t`)
No due date set.
No dependencies set.
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?