mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-22 21:32:31 +00:00
Fix MODE=tiny build
This commit is contained in:
parent
3f015b1e51
commit
9877c04fac
2 changed files with 8 additions and 4 deletions
|
@ -22,6 +22,8 @@
|
|||
#include "libc/intrin/spinlock.h"
|
||||
#include "libc/intrin/wait0.internal.h"
|
||||
#include "libc/math.h"
|
||||
#include "libc/mem/mem.h"
|
||||
#include "libc/runtime/gc.internal.h"
|
||||
#include "libc/runtime/stack.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/sysv/consts/clone.h"
|
||||
|
@ -58,10 +60,10 @@ int Worker(void *p, int tid) {
|
|||
|
||||
TEST(dtoa, locks) {
|
||||
int i, n = 32;
|
||||
struct spawn th[n];
|
||||
struct spawn *t = gc(malloc(sizeof(struct spawn) * n));
|
||||
if (IsOpenbsd()) return; // TODO(jart): OpenBSD flakes :'(
|
||||
for (i = 0; i < n; ++i) ASSERT_SYS(0, 0, _spawn(Worker, 0, th + i));
|
||||
for (i = 0; i < n; ++i) EXPECT_SYS(0, 0, _join(th + i));
|
||||
for (i = 0; i < n; ++i) ASSERT_SYS(0, 0, _spawn(Worker, 0, t + i));
|
||||
for (i = 0; i < n; ++i) EXPECT_SYS(0, 0, _join(t + i));
|
||||
}
|
||||
|
||||
static const struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue