[Nut-upsdev] nut_clock_* UT review

Arnaud Quette aquette.dev at gmail.com
Fri Nov 9 15:09:47 UTC 2012


2012/11/9 <VaclavKrpec at eaton.com>

>       OK, so I’ll modify it so that it only uses Perl if date bin. desn’t*
> ***
>
> support the %s format string.****
>
>
> that would indeed be the most suitable approach.
> do you need some help for the configure test?
>
> ****
>
> ** **
>
> Couldn’t I just do something like this?****
>
> ** **
>
> date +%s | grep -q '^[0-9]*$' && date_s_works=”yes”****
>

a patch is attached.
you can then use "#ifdef HAVE_DATE_S..."

also note that I'll have to fix a few more things on the Solaris, since the
PATH change generated some issues:
http://buildbot.networkupstools.org/public/nut/builders/Solaris-sparc/builds/258/steps/configure/logs/stdio

enjoy your week-end,
Arnaud
-- 
Linux / Unix / Opensource Engineering Expert - Eaton -
http://opensource.eaton.com
Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org
Debian Developer - http://www.debian.org
Free Software Developer - http://arnaud.quette.fr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20121109/c39f6a19/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: date_s_support.diff
Type: application/octet-stream
Size: 716 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20121109/c39f6a19/attachment.obj>


More information about the Nut-upsdev mailing list