Test scenario for sysctl kern.maxfiles

Garrett Cooper yaneurabeya at gmail.com
Thu Mar 6 18:20:56 UTC 2014


On Thu, Mar 6, 2014 at 9:41 AM, Julio Merino <jmmv at freebsd.org> wrote:
> On Thu, Mar 6, 2014 at 11:29 AM, Peter Holm <peter at holm.cc> wrote:
>> On Thu, Mar 06, 2014 at 07:44:58AM -0800, Garrett Cooper wrote:
>>>
>>> ATF forks, doesn?t spawns threads:
>>>
>>> # grep -r pthread contrib/atf/ || echo not threaded
>>> not threaded
>>>
>>
>> Hmm ... OK.
>>
>> $ ldd /usr/tests/sys/kern/unix_seqpacket_test
>> /usr/tests/sys/kern/unix_seqpacket_test:
>>         libthr.so.3 => /lib/libthr.so.3 (0x2806f000)
>>         libatf-c.so.1 => /usr/lib/libatf-c.so.1 (0x28091000)
>>         libc.so.7 => /lib/libc.so.7 (0x280a5000)
>> $
>
> That's a property of this test program, not of atf:
>
> $ grep -i thread tests/sys/kern/Makefile
> LDADD+=         -lpthread

That should be

LDADD.unix_seqpacket_test+= -lpthread

I'd be sure to test this before committing though. It *should* work,
but bsd.progs.mk [in its current incarnation] breaks POLA with some
variables compared to bsd.prog.mk in NetBSD.

Cheers,
-Garrett


More information about the freebsd-testing mailing list