SummaryRefsLogTreeCommitDiffStats
path: root/tests
diff options
context:
space:
mode:
authorMathieu Lirzin <mthl@gnu.org>2018-03-20 14:44:54 +0100
committerMathieu Lirzin <mthl@gnu.org>2018-03-20 19:27:10 +0100
commitf908c5395c24da621e5e30814a7a3e4fb76abcbc (patch)
tree27746720c8c9768f63c1bf4e95ad88407fc8551b /tests
parent09e452b62a82845736e638eecd762a911d95a349 (diff)
downloadmcron-f908c5395c24da621e5e30814a7a3e4fb76abcbc.tar.gz
mcron-f908c5395c24da621e5e30814a7a3e4fb76abcbc.tar.bz2
mcron-f908c5395c24da621e5e30814a7a3e4fb76abcbc.zip
utils: Use 'scandir' instead of custom 'for-each-file'
* src/mcron/utils.scm (for-each-file): Delete. * src/mcron/scripts/cron.scm (process-files-in-system-directory): Use 'scandir' which has the benefit of being deterministic. * src/mcron/scripts/mcron.scm (process-files-in-user-directory): Likewise. * tests/schedule.sh: Update expected output which is now more reliable. * NEWS: Update. Suggested-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/schedule.sh26
1 files changed, 13 insertions, 13 deletions
diff --git a/tests/schedule.sh b/tests/schedule.sh
index 5ea79e5..d403f1d 100644
--- a/tests/schedule.sh
+++ b/tests/schedule.sh
@@ -41,14 +41,10 @@ EOF
cat > expected <<EOF
Thu Jan 1 00:00:01 1970 +0000
-(display foo
-)
-
-Thu Jan 1 00:00:01 1970 +0000
(display bar
)
-Thu Jan 1 00:00:02 1970 +0000
+Thu Jan 1 00:00:01 1970 +0000
(display foo
)
@@ -56,7 +52,7 @@ Thu Jan 1 00:00:02 1970 +0000
(display bar
)
-Thu Jan 1 00:00:03 1970 +0000
+Thu Jan 1 00:00:02 1970 +0000
(display foo
)
@@ -64,7 +60,7 @@ Thu Jan 1 00:00:03 1970 +0000
(display bar
)
-Thu Jan 1 00:00:04 1970 +0000
+Thu Jan 1 00:00:03 1970 +0000
(display foo
)
@@ -72,7 +68,7 @@ Thu Jan 1 00:00:04 1970 +0000
(display bar
)
-Thu Jan 1 00:00:05 1970 +0000
+Thu Jan 1 00:00:04 1970 +0000
(display foo
)
@@ -80,7 +76,7 @@ Thu Jan 1 00:00:05 1970 +0000
(display bar
)
-Thu Jan 1 00:00:06 1970 +0000
+Thu Jan 1 00:00:05 1970 +0000
(display foo
)
@@ -88,7 +84,7 @@ Thu Jan 1 00:00:06 1970 +0000
(display bar
)
-Thu Jan 1 00:00:07 1970 +0000
+Thu Jan 1 00:00:06 1970 +0000
(display foo
)
@@ -96,7 +92,7 @@ Thu Jan 1 00:00:07 1970 +0000
(display bar
)
-Thu Jan 1 00:00:08 1970 +0000
+Thu Jan 1 00:00:07 1970 +0000
(display foo
)
@@ -104,7 +100,7 @@ Thu Jan 1 00:00:08 1970 +0000
(display bar
)
-Thu Jan 1 00:00:09 1970 +0000
+Thu Jan 1 00:00:08 1970 +0000
(display foo
)
@@ -112,7 +108,7 @@ Thu Jan 1 00:00:09 1970 +0000
(display bar
)
-Thu Jan 1 00:00:10 1970 +0000
+Thu Jan 1 00:00:09 1970 +0000
(display foo
)
@@ -120,6 +116,10 @@ Thu Jan 1 00:00:10 1970 +0000
(display bar
)
+Thu Jan 1 00:00:10 1970 +0000
+(display foo
+)
+
EOF
mcron --schedule=10 > output