From 32e9891f97c6b9270b17a6cc0ecb335e1e6072d1 Mon Sep 17 00:00:00 2001 From: mvs Date: Wed, 15 Dec 2021 22:29:55 +0000 Subject: [PATCH] Fix the argument passed to garbage collector enforce thread for 'unsopassgc' test. Also increase it's file descriptor limit. --- regress/sys/kern/unixsockets/Makefile | 5 ++++- 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 # @@ -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, -- 2.20.1