X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=tests%2Fdaemon.at;h=7c30e108fcf069699c597dc3d7bfe92f0b988ea0;hb=fe29af4c888d48cc1f16b1a247c2ffb6f0864522;hp=a80cd3e84a961dc82cc35f66e577a45aa2948bdb;hpb=77a922c7e53c3e9a2618d1f1a622bb2442f535b0;p=sliver-openvswitch.git diff --git a/tests/daemon.at b/tests/daemon.at index a80cd3e84..7c30e108f 100644 --- a/tests/daemon.at +++ b/tests/daemon.at @@ -104,7 +104,7 @@ CHECK([kill -0 `cat daemon`]) CHECK([ps -o ppid= -p `cat daemon` > monitor]) CHECK([kill -0 `cat monitor`]) CHECK([ps -o ppid= -p `cat monitor` > init]) -CHECK([test `cat init` = 1]) +CHECK([test `cat init` != $$]) # Kill the daemon process, making it look like a segfault, # and wait for a new daemon process to get spawned. CHECK([cp daemon olddaemon]) @@ -121,7 +121,7 @@ CHECK([ps -o ppid= -p `cat daemon` > newmonitor]) CHECK([diff monitor newmonitor]) CHECK([kill -0 `cat newmonitor`]) CHECK([ps -o ppid= -p `cat newmonitor` > init]) -CHECK([test `cat init` = 1]) +CHECK([test `cat init` != $$]) # Kill the daemon process with SIGTERM, and wait for the daemon # and the monitor processes to go away and the pidfile to get deleted. CHECK([kill `cat daemon`], [0], [], [ignore])