Test m=aarch64 on GitHub Actions

This commit is contained in:
Justine Tunney 2023-06-05 15:23:00 -07:00
parent 42b9b75749
commit 7558549d44
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
15 changed files with 60 additions and 84 deletions

View file

@ -16,17 +16,17 @@
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
*/
#include "libc/thread/spawn.h"
#include "libc/assert.h"
#include "libc/atomic.h"
#include "libc/calls/calls.h"
#include "libc/calls/syscall-sysv.internal.h"
#include "libc/intrin/atomic.h"
#include "libc/macros.internal.h"
#include "libc/mem/mem.h"
#include "libc/mem/gc.internal.h"
#include "libc/mem/mem.h"
#include "libc/runtime/internal.h"
#include "libc/testlib/testlib.h"
#include "libc/thread/spawn.h"
atomic_int itworked;
_Thread_local int var;
@ -48,7 +48,7 @@ int Worker(void *arg, int tid) {
}
TEST(_spawn, test) {
long i, n = 128;
long i, n = 64;
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));