From: mvs Date: Wed, 15 Dec 2021 22:29:55 +0000 (+0000) Subject: Fix the argument passed to garbage collector enforce thread for X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=32e9891f97c6b9270b17a6cc0ecb335e1e6072d1;p=openbsd Fix the argument passed to garbage collector enforce thread for 'unsopassgc' test. Also increase it's file descriptor limit. --- diff --git a/regress/sys/kern/unixsockets/Makefile b/regress/sys/kern/unixsockets/Makefile index 27270644e96..d4aed8ea298 100644 --- a/regress/sys/kern/unixsockets/Makefile +++ b/regress/sys/kern/unixsockets/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.9 2021/12/15 20:56:56 bluhm Exp $ +# $OpenBSD: Makefile,v 1.10 2021/12/15 22:29:55 mvs Exp $ # Copyright (c) 2021 Makkoveev Vitaliy # @@ -38,4 +38,7 @@ CLEANFILES += *.socket run-regress-undgram_conclose: ulimit -n 256; ./undgram_conclose +run-regress-unsopassgc: + ulimit -n 256; ./unsopassgc + .include diff --git a/regress/sys/kern/unixsockets/unsopassgc.c b/regress/sys/kern/unixsockets/unsopassgc.c index 7cb6e1c4303..9f5d72f58e6 100644 --- a/regress/sys/kern/unixsockets/unsopassgc.c +++ b/regress/sys/kern/unixsockets/unsopassgc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: unsopassgc.c,v 1.2 2021/12/15 21:25:55 bluhm Exp $ */ +/* $OpenBSD: unsopassgc.c,v 1.3 2021/12/15 22:29:55 mvs Exp $ */ /* * Copyright (c) 2021 Vitaliy Makkoveev @@ -269,7 +269,7 @@ main(int argc, char *argv[]) thr_pass_args[i].passfd = thr_pass_args[i].s[0]; } - thr_gc_arg->passfd = thr_pass_args[i].s[0]; + thr_gc_arg->passfd = thr_pass_args[0].s[0]; for (i = 0; i < ncpu; ++i) { error = pthread_create(&thr, NULL,