diff options
author | Dale Mellor <mcron-lsfnyl@rdmp.org> | 2020-04-13 19:45:45 +0100 |
---|---|---|
committer | Dale Mellor <mcron-lsfnyl@rdmp.org> | 2020-04-20 16:49:05 +0000 |
commit | ad6e4e550512555328cfbc8f2777e71f5d0e28a4 (patch) | |
tree | 74d904bace947d84bd40096b81670fbd83e2916c /tests | |
parent | cb88cc9e423ce02c3e2806e8a7889c3048264a25 (diff) | |
download | mcron-ad6e4e550512555328cfbc8f2777e71f5d0e28a4.tar.gz mcron-ad6e4e550512555328cfbc8f2777e71f5d0e28a4.tar.bz2 mcron-ad6e4e550512555328cfbc8f2777e71f5d0e28a4.zip |
test: Demonstration of failure to open local file.
The mcron program goes looking for files specified on the command
line in Guile's module path, inevitably resulting in failure to load
said file. Running 'make check' will show at least one failure.
* tests/basic.sh: Added new test.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/basic.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/basic.sh b/tests/basic.sh index 07b664b..7b2ca55 100644 --- a/tests/basic.sh +++ b/tests/basic.sh @@ -27,6 +27,9 @@ cat > cron/foo.guile <<EOF (job '(next-second) '(display "foo\n")) EOF +mcron --schedule=1 cron/foo.guile > "output$$" +grep -e "foo" "output$$" || fail_ "'foo.guile' job is not scheduled" + mcron --schedule=1 > "output$$" grep -e "foo" "output$$" || fail_ "'foo.guile' job is not scheduled" |