Re: [chrony-dev] [PATCH v4 5/5] test/unit: add leapdb test

2024-02-07 Thread Patrick Oppenlander
On Wed, Feb 7, 2024 at 9:19 PM Miroslav Lichvar wrote: > > On Wed, Feb 07, 2024 at 04:29:44PM +1100, patrick.oppenlan...@gmail.com wrote: > > +void > > +test_unit(void) > > +{ > > + char conf[][100] = { > > +"leapsectz right/UTC", > > +"leapseclist leapdb.list" > > + }; > > + > > +

Re: [chrony-dev] [PATCH v4 5/5] test/unit: add leapdb test

2024-02-07 Thread Miroslav Lichvar
On Wed, Feb 07, 2024 at 04:29:44PM +1100, patrick.oppenlan...@gmail.com wrote: > +void > +test_unit(void) > +{ > + char conf[][100] = { > +"leapsectz right/UTC", > +"leapseclist leapdb.list" > + }; > + > + CNF_Initialise(0, 0); > + for (int i = 0; i < sizeof conf / sizeof conf[0]; i++)

[chrony-dev] [PATCH v4 5/5] test/unit: add leapdb test

2024-02-06 Thread patrick . oppenlander
From: Patrick Oppenlander --- test/unit/leapdb.c| 92 +++ test/unit/leapdb.list | 21 ++ 2 files changed, 113 insertions(+) create mode 100644 test/unit/leapdb.c create mode 100644 test/unit/leapdb.list diff --git a/test/unit/leapdb.c