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/calls/syscall-sysv.internal.h"
#include "libc/intrin/kprintf.h"
#include "libc/macros.internal.h"
#include "libc/mem/mem.h"
#include "libc/runtime/gc.internal.h"
#include "libc/testlib/testlib.h"
#include "libc/thread/spawn.h"
#include "libc/thread/thread.h"
@ -42,7 +44,7 @@ int Worker(void *arg, int tid) {
TEST(_spawn, test) {
long i, n = 128;
struct spawn t[n];
struct spawn *t = gc(malloc(sizeof(struct spawn) * n));
for (i = 0; i < n; ++i) ASSERT_SYS(0, 0, _spawn(Worker, (void *)i, t + i));
for (i = 0; i < n; ++i) EXPECT_SYS(0, 0, _join(t + i));
for (i = 0; i < n; ++i) EXPECT_SYS(0, 0, _join(t + i));