Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Nov 2015 09:32:31 +0100
From:      Hans Petter Selasky <hps@selasky.org>
To:        "Bjoern A. Zeeb" <bz@FreeBSD.org>, Randall Stewart <rrs@FreeBSD.org>
Cc:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r290663 - in head/sys: modules modules/tests modules/tests/callout_test modules/tests/framework tests tests/callout_test tests/framework
Message-ID:  <5642FD1F.2040201@selasky.org>
In-Reply-To: <E9550A7F-BF6A-46FB-BAA5-0D8DC6DD69AC@FreeBSD.org>
References:  <201511101414.tAAEEfPI057133@repo.freebsd.org> <E9550A7F-BF6A-46FB-BAA5-0D8DC6DD69AC@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 11/10/15 17:15, Bjoern A. Zeeb wrote:
>
>> On 10 Nov 2015, at 14:14 , Randall Stewart <rrs@FreeBSD.org> wrote:
>>
>> Author: rrs
>> Date: Tue Nov 10 14:14:41 2015
>> New Revision: 290663
>> URL: https://svnweb.freebsd.org/changeset/base/290663
>>
>> Log:
>>   Add a kernel test framework. The callout_test is a demonstration and will only
>>   work with the upcoming async-drain functionality. Tests can be added
>>   to the tests directory and then the framework can be used to launch
>>   those tests.
>>
>>   MFC after:	1 month
>>   Sponsored by:	Netflix Inc.
>>   Differential Revision:	https://reviews.freebsd.org/D1755
>>
>
>
> /scratch/tmp/bz/head.svn/sys/modules/tests/callout_test/../../../tests/callout_test/callout_test.c:75: warning: function declaration isn't a prototype [-Wstrict-prototypes]
> /scratch/tmp/bz/head.svn/sys/modules/tests/callout_test/../../../tests/callout_test/callout_test.c:133: warning: no previous prototype for ‘execute_the_co_test' [-Wmissing-prototypes]
>
>
> /scratch/tmp/bz/head.svn/sys/modules/tests/framework/../../../tests/framework/kern_testfrwk.c:171: warning: redundant redeclaration of 'sysctl___kern' [-Wredundant-decls]
> /scratch/tmp/bz/head.svn/sys/sys/sysctl.h:918: warning: previous declaration of ‘sysctl___kern' was here
>
> This is on sparc64 but I guess that’s just one of my early kernel compiles.
>
>
>> Added:
>>   head/sys/modules/tests/
>>   head/sys/modules/tests/callout_test/
>>   head/sys/modules/tests/callout_test/Makefile   (contents, props changed)
>>   head/sys/modules/tests/framework/
>>   head/sys/modules/tests/framework/Makefile   (contents, props changed)
>>   head/sys/tests/
>>   head/sys/tests/callout_test/
>>   head/sys/tests/callout_test.h   (contents, props changed)
>>   head/sys/tests/callout_test/callout_test.c   (contents, props changed)
>>   head/sys/tests/framework/
>>   head/sys/tests/framework/kern_testfrwk.c   (contents, props changed)
>>   head/sys/tests/kern_testfrwk.h   (contents, props changed)
>> Modified:
>>   head/sys/modules/Makefile
>

Breaks here too on amd64:

> /usr/img/freebsd/sys/modules/tests/callout_test/../../../tests/callout_test/callout_test.c:52:9: error:
>       'cpu_spinwait' macro redefined [-Werror]
> #define cpu_spinwait()
>         ^
> ./machine/cpu.h:50:9: note: previous definition is here
> #define cpu_spinwait()                  ia32_pause()
>         ^
> 1 error generated.

> /usr/img/freebsd/sys/modules/tests/framework/../../../sys/bus.h:655:10: fatal error:
>       'device_if.h' file not found
> #include "device_if.h"
>          ^
> 1 error generated.
> *** Error code 1

--HPS





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5642FD1F.2040201>