Added test case for run_watch

The valid test case assumes pid 1 exists, which should always
be true on Unix environment.
This commit is contained in:
eplanet 2016-11-14 21:33:09 +00:00
parent 243d08e1ad
commit 9c47240523
3 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1 @@
EXISTING: yes | NONEXISTANT: no

View File

@ -0,0 +1,14 @@
general {
output_format = "none"
}
order += "run_watch EXISTING"
order += "run_watch NONEXISTANT"
run_watch EXISTING {
pidfile = "testcases/004-run-watch/pidfile"
}
run_watch NONEXISTANT {
pidfile = "testcases/004-run-watch/notexistant"
}

View File

@ -0,0 +1 @@
1