diff options
author | Vitaliy Makkoveev <mvs@cvs.openbsd.org> | 2021-12-15 22:29:56 +0000 |
---|---|---|
committer | Vitaliy Makkoveev <mvs@cvs.openbsd.org> | 2021-12-15 22:29:56 +0000 |
commit | 9bd49f5991720165dbc1e8e2d72dc876d7bab1cf (patch) | |
tree | 7846a04463231a03638852c61f9b8941ae64e033 | |
parent | c6deacd276dee82cfa9be8019c1e8d64631e6ca2 (diff) |
Fix the argument passed to garbage collector enforce thread for
'unsopassgc' test. Also increase it's file descriptor limit.
-rw-r--r-- | regress/sys/kern/unixsockets/Makefile | 5 | ||||
-rw-r--r-- | regress/sys/kern/unixsockets/unsopassgc.c | 4 |
2 files changed, 6 insertions, 3 deletions
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 <mvs@openbsd.org> # @@ -38,4 +38,7 @@ CLEANFILES += *.socket run-regress-undgram_conclose: ulimit -n 256; ./undgram_conclose +run-regress-unsopassgc: + ulimit -n 256; ./unsopassgc + .include <bsd.regress.mk> 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 <mvs@openbsd.org> @@ -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, |