Re: [RFC 5/5] livepatch: Selftests of the API for tracking system state changes

2019-06-21 Thread Joe Lawrence
On Tue, Jun 11, 2019 at 03:56:27PM +0200, Petr Mladek wrote: > > [ ... snip ... ] > > diff --git a/lib/livepatch/test_klp_state.c b/lib/livepatch/test_klp_state.c > new file mode 100644 > index ..c43dc2f2e01d > --- /dev/null > +++ b/lib/livepatch/test_klp_state.c > @@ -0,0 +1,161 @@

Re: [RFC 5/5] livepatch: Selftests of the API for tracking system state changes

2019-06-21 Thread Miroslav Benes
> diff --git a/lib/livepatch/test_klp_state.c b/lib/livepatch/test_klp_state.c > new file mode 100644 > index ..c43dc2f2e01d > --- /dev/null > +++ b/lib/livepatch/test_klp_state.c > @@ -0,0 +1,161 @@ > +// SPDX-License-Identifier: GPL-2.0 > +// Copyright (C) 2019 SUSE > + > +#define

[RFC 5/5] livepatch: Selftests of the API for tracking system state changes

2019-06-11 Thread Petr Mladek
Four selftests for the new API. Signed-off-by: Petr Mladek --- lib/livepatch/Makefile | 5 +- lib/livepatch/test_klp_state.c | 161 lib/livepatch/test_klp_state2.c | 190