Prevent eclipse files from barfing on systems with 32-bit time_t

This commit is contained in:
Dianne Skoll
2025-05-06 12:43:38 -04:00
parent e107ed5482
commit ea3126645c
3 changed files with 240 additions and 237 deletions

View File

@@ -58,6 +58,8 @@ REM NOQUEUE [utctolocal('2036-02-11@20:32')] DURATION 202 MSG Total Lunar Eclips
REM NOQUEUE [utctolocal('2036-08-07@00:57')] DURATION 231 MSG Total Lunar Eclipse
REM NOQUEUE [utctolocal('2037-01-31@12:22')] DURATION 197 MSG Total Lunar Eclipse
REM NOQUEUE [utctolocal('2037-07-27@02:34')] DURATION 192 MSG Partial Lunar Eclipse
# The following will only work on systems with 64-bit time_t
IF $TimetIs64bit
REM NOQUEUE [utctolocal('2039-06-06@17:25')] DURATION 179 MSG Partial Lunar Eclipse
REM NOQUEUE [utctolocal('2039-11-30@15:13')] DURATION 206 MSG Partial Lunar Eclipse
REM NOQUEUE [utctolocal('2040-05-26@10:01')] DURATION 211 MSG Total Lunar Eclipse
@@ -146,3 +148,4 @@ REM NOQUEUE [utctolocal('2097-10-21@23:50')] DURATION 195 MSG Total Lunar Eclips
REM NOQUEUE [utctolocal('2098-04-15@17:14')] DURATION 215 MSG Total Lunar Eclipse
REM NOQUEUE [utctolocal('2098-10-10@07:26')] DURATION 221 MSG Total Lunar Eclipse
REM NOQUEUE [utctolocal('2099-04-05@07:44')] DURATION 88 MSG Partial Lunar Eclipse
ENDIF

View File

@@ -90,6 +90,9 @@ REM NOQUEUE [utctolocal('2036-07-23@10:32')] MSG Partial Solar Eclipse centered
REM NOQUEUE [utctolocal('2036-08-21@17:26')] MSG Partial Solar Eclipse centered at 71.1°N 47.0°E
REM NOQUEUE [utctolocal('2037-01-16@09:49')] MSG Partial Solar Eclipse centered at 68.5°N 20.8°E
REM NOQUEUE [utctolocal('2037-07-13@02:41')] MSG Total Solar Eclipse centered at 24.8°S 139.1°E
# The following will only work on systems with 64-bit time_t
IF $TimetIs64bit
REM NOQUEUE [utctolocal('2038-01-05@13:47')] MSG Annular Solar Eclipse centered at 2.1°N 25.4°W
REM NOQUEUE [utctolocal('2038-07-02@13:33')] MSG Annular Solar Eclipse centered at 25.4°N 21.9°W
REM NOQUEUE [utctolocal('2038-12-26@01:00')] MSG Total Solar Eclipse centered at 40.3°S 164.0°E
@@ -233,3 +236,4 @@ REM NOQUEUE [utctolocal('2099-03-21@22:55')] MSG Annular Solar Eclipse centered
REM NOQUEUE [utctolocal('2099-09-14@16:58')] MSG Total Solar Eclipse centered at 23.4°N 62.8°W
REM NOQUEUE [utctolocal('2100-03-10@22:28')] MSG Annular Solar Eclipse centered at 12.0°N 162.4°W
REM NOQUEUE [utctolocal('2100-09-04@08:49')] MSG Total Solar Eclipse centered at 10.5°S 39.0°E
ENDIF

View File

@@ -723,12 +723,8 @@ REM Wed MSG Wookie
EOF
# Make sure all the include files are ok
if test "$TIMET_IS_64BIT" = 1; then
find ../include -type f -name '*.rem' | while read x; do ../src/remind -n $x 1 Jan 2024 2>>../tests/test.out 1>/dev/null; done
else
# The eclipse files fail with 32-bit time_t
find ../include -type f -name '*.rem' | grep -v eclipses.rem | while read x; do ../src/remind -n $x 1 Jan 2024 2>>../tests/test.out 1>/dev/null; done
fi
cmp -s ../tests/test.out ../tests/test.cmp
if [ "$?" = "0" ]; then
echo "Remind: Acceptance test PASSED"