Add test to ensure we warn if we try to set $OnceFile to something else after a ONCE has been seen.

This commit is contained in:
Dianne Skoll
2024-07-09 09:33:58 -04:00
parent 735f6f5686
commit 02122491c3
2 changed files with 6 additions and 0 deletions

View File

@@ -1,3 +1,6 @@
SET $OnceFile "../tests/once.timestamp"
REM ONCE MSG This should only be issued once per day.
SET $OnceFile "../tests/once.timestamp"
SET $OnceFile "../tests/once-again.timestamp"

View File

@@ -12370,11 +12370,14 @@ No reminders.
../tests/if1.rem(5): Warning: Missing ENDIF
../tests/if1.rem(3): IF without ENDIF
No reminders.
../tests/test-once.rem(6): Not setting $OnceFile: Already processed a reminder with a ONCE clause
Reminders for Tuesday, 9th July, 2024 (today):
This should only be issued once per day.
../tests/test-once.rem(6): Not setting $OnceFile: Already processed a reminder with a ONCE clause
No reminders.
../tests/test-once.rem(6): Not setting $OnceFile: Already processed a reminder with a ONCE clause
No reminders.
# This is a timestamp file used by Remind to track ONCE reminders.
# Do not edit or delete it.