Fix MODE=tiny build

This commit is contained in:
Justine Tunney 2022-07-11 06:11:39 -07:00
parent 3f015b1e51
commit 9877c04fac
2 changed files with 8 additions and 4 deletions

View file

@ -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 {