HomeClusterLabs Projects

Test: libcrmcommon: Test characters after %N

Description

Test: libcrmcommon: Test characters after %N

in pcmktime_format_hr() unit tests. The parsing logic in
pcmk
time_format_hr() is hard to follow. For a little while, I was
confused and thought it would give incorrect output if there were any
format specifiers after a "%N".

There is probably no real use case for this support, but it should work
(and currently it does work).

Signed-off-by: Reid Wahl <nrwahl@protonmail.com>

Details

Provenance
nrwahl2Authored on Thu, Jun 26, 8:30 PM
Parents
rP6a3c450536a5: Refactor: libcrmcommon: Break up TIME_S for convenience
Branches
Unknown
Tags
Unknown