]> git.ipfire.org Git - thirdparty/util-linux.git/commit
cal: add ifdef TEST_CAL
authorKarel Zak <kzak@redhat.com>
Fri, 2 Feb 2018 09:05:15 +0000 (10:05 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 2 Feb 2018 09:05:15 +0000 (10:05 +0100)
commitb9d9ab7dae14815cc5f40aae0170cd8ed7d342eb
treea5ba6880a65b62537dcf2e2323c72e18a0e4a912
parent78952313214b762328f1775d8d4a799b063c5dd6
cal: add ifdef TEST_CAL

The test program follows CAL_TEST_TIME=<sec> rather than libc time().
It allows to use cal(1) in regression tests in cases where output
depends on the current time.

(We already use the same for example for logger.)

Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/Makemodule.am
misc-utils/cal.c