summaryrefslogtreecommitdiff
path: root/test/range-002.sh
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2012-12-22 00:49:29 +0100
committerLukas Fleischer <calcurse@cryptocrack.de>2012-12-22 01:09:17 +0100
commit2ea91e1a8a2ee4318e3530ec2680565ad11b1585 (patch)
tree3ce57c3d13289ba7bc84efa1f79973beded78aa5 /test/range-002.sh
parentc054182890b5a2145d457d8ecade200d851e95fd (diff)
downloadcalcurse-2ea91e1a8a2ee4318e3530ec2680565ad11b1585.zip
test/: Use `faketime -f`
Use the advanced timestamp specification format for libfaketime. Before using that, some tests failed on 32-bit systems due to integer overflows. It seems like faketime translates absolute dates to relative dates by default. Moreover, libfaketime is not able to handle relative dates that exceed the maximum value of a signed integer. Using "-f" skips the conversion to relative dates. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'test/range-002.sh')
-rwxr-xr-xtest/range-002.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/range-002.sh b/test/range-002.sh
index 5c28eaf..55d057d 100755
--- a/test/range-002.sh
+++ b/test/range-002.sh
@@ -6,7 +6,8 @@ if [ ! -x "$(command -v faketime)" ]; then
fi
if [ "$1" = 'actual' ]; then
- faketime '2000-01-01 00:00:00' "$CALCURSE" --read-only -D "$DATA_DIR"/ -r400
+ faketime -f '2000-01-01 00:00:00' "$CALCURSE" --read-only -D "$DATA_DIR"/ \
+ -r400
elif [ "$1" = 'expected' ]; then
cat <<EOD
04/07/00: