svn commit: r290663 - in head/sys: modules modules/tests modules/tests/callout_test modules/tests/framework tests tests/callout_test tests/framework
Hans Petter Selasky
hps at selasky.org
Wed Nov 11 08:30:51 UTC 2015
On 11/10/15 17:15, Bjoern A. Zeeb wrote:
>
>> On 10 Nov 2015, at 14:14 , Randall Stewart <rrs at 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
More information about the svn-src-all
mailing list