mirror of
https://salsa.debian.org/dskoll/remind.git
synced 2026-04-23 09:42:56 +02:00
Make tests pass on systems with 32-bit time_t.
This commit is contained in:
+12
-1
@@ -55,6 +55,12 @@ if test "$OK" = 0 ; then
|
|||||||
export LANG=C.UTF-8
|
export LANG=C.UTF-8
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
TIMET_IS_64BIT=`(echo 'BANNER %'; echo 'MSG [$TimetIs64Bit]%') | ../src/remind -`
|
||||||
|
if test "$TIMET_IS_64BIT" = "0" ; then
|
||||||
|
echo "WARNING: This version of Remind does not have a 64-bit time_t." >&2
|
||||||
|
echo "Some functions may fail after the year 2037." >&2
|
||||||
|
fi
|
||||||
|
|
||||||
chmod 000 include_dir/04cantread.rem
|
chmod 000 include_dir/04cantread.rem
|
||||||
TEST_GETENV="foo bar baz" ; export TEST_GETENV
|
TEST_GETENV="foo bar baz" ; export TEST_GETENV
|
||||||
echo "Test 1" > ../tests/test.out
|
echo "Test 1" > ../tests/test.out
|
||||||
@@ -716,7 +722,12 @@ REM Wed MSG Wookie
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Make sure all the include files are ok
|
# Make sure all the include files are ok
|
||||||
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
|
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
|
cmp -s ../tests/test.out ../tests/test.cmp
|
||||||
if [ "$?" = "0" ]; then
|
if [ "$?" = "0" ]; then
|
||||||
echo "Remind: Acceptance test PASSED"
|
echo "Remind: Acceptance test PASSED"
|
||||||
|
|||||||
Reference in New Issue
Block a user