tests.sh: cover $SFEED_NEW_AGE - sfeed_tests - sfeed tests and RSS and Atom files
(HTM) git clone git://git.codemadness.org/sfeed_tests
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 4f5aeb3b65f08116176ebd48f5d91ccbb72df65f
(DIR) parent 6eca9afe6aebc7c3f32f341272b1ac7734085e45
(HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Thu, 11 Dec 2025 20:43:01 +0100
tests.sh: cover $SFEED_NEW_AGE
Diffstat:
M tests.sh | 4 ++++
1 file changed, 4 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/tests.sh b/tests.sh
@@ -245,6 +245,10 @@ coverage() {
printf '0\t000000000011111111112222222222333333333344444444445555555555666666666\xc3' | ./sfeed_plain > /dev/null
printf '0\t000000000011111111112222222222333333333344444444445555555555666666666\xc3\xc3' | ./sfeed_plain > /dev/null
+ # SFEED_NEW_AGE environment variable
+ printf '20000000000\ta\n' | SFEED_NEW_AGE="1" ./sfeed_plain > /dev/null
+ printf '20000000000\ta\n' | SFEED_NEW_AGE="abc" ./sfeed_plain > /dev/null # invalid, not numeric
+
# test overflow checks (compiled with MAX_MEM=409600).
(echo "<entry><content>"
i=0