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:
parent
243d08e1ad
commit
9c47240523
1
testcases/004-run-watch/expected_output.txt
Normal file
1
testcases/004-run-watch/expected_output.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
EXISTING: yes | NONEXISTANT: no
|
14
testcases/004-run-watch/i3status.conf
Normal file
14
testcases/004-run-watch/i3status.conf
Normal 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"
|
||||||
|
}
|
1
testcases/004-run-watch/pidfile
Normal file
1
testcases/004-run-watch/pidfile
Normal file
@ -0,0 +1 @@
|
|||||||
|
1
|
Loading…
Reference in New Issue
Block a user