[PATCH] Add substitutions %t, %j, and %J as path-safe variants of %T, %i, and %I.
Dr. Thomas Orgis
thomas.orgis at uni-hamburg.de
Fri Dec 29 18:18:51 UTC 2017
With patch now.
Am Fri, 29 Dec 2017 19:08:23 +0100
schrieb "Dr. Thomas Orgis via samba-technical" <samba-technical at lists.samba.org>:
> Another patch attached.
>
> Am Fri, 29 Dec 2017 16:57:33 +0100
> schrieb "Dr. Thomas Orgis via samba-technical" <samba-technical at lists.samba.org>:
>
> > Can I fake the current time for the tests in a structured manner? The
> > bad thing about localtime() is that it changes each day, if not every
> > millisecond … is this feature present in the test suite already?
>
> As a workaround, I am now testing the underlying formatting function
> directly. I see trouble testing the original %T substitution, as it
> means predicting strftime() output … or even the fallback in case it is
> lacking.
>
> Does this work for %t, %j, and %J now?
>
>
> Regards,
>
> Thomas
>
--
Dr. Thomas Orgis
Universität Hamburg
RRZ / Basis-Infrastruktur / HPC
Schlüterstr. 70
20146 Hamburg
Tel.: 040/42838 8826
Fax: 040/428 38 6270
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-substitutions-t-j-and-J-as-path-safe-variants-of.patch
Type: text/x-patch
Size: 8448 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20171229/9c103c34/0001-Add-substitutions-t-j-and-J-as-path-safe-variants-of.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4967 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20171229/9c103c34/smime.bin>
More information about the samba-technical
mailing list