On Fri, Apr 27, 2012 at 04:08:03PM -0700, John Stultz wrote:Well, testing it from a kernel perspective isn't a problem as its easy to write up a userland app that exercises the code path. But I agree its unlikely to be used in practice.On 04/27/2012 01:12 AM, Richard Cochran wrote:Out of curiosity, I looked at ntp-4.2.6p5 to see if they really
+#ifdef CONFIG_DELETE_LEAP_SECONDSI'm not a big fan of this additional config option. The maintenance
+ /* Remembers whether to insert or to delete. */
+ int insert_leapsecond;
+#endif
burden for the extra condition is probably not worth the code size
trade-off. Or it needs way more justification.
support deleting leap seconds or not. Even though the code appears to
try and support them, I spotted a few bugs. There is a hard coded
assumption that the TAI offset is increasing.
This is just the reason why I suggest not supporting deletions (or
only conditionally for nit pickers). You can code it up, but it will
be in vain, since the code will never be tested or used in practice.
Code that is never executed is a true mainenance burden by definition.