Changes: Test unixSignalHAndlers by killing booster-m and booster-d, singnal hup

RevBy: Nimika Keshri
pull/1/head
Joona Hakkarainen 14 years ago
parent 010d0d939d
commit 831fc0cd5a

@ -30,6 +30,10 @@
<case name="applauncherd__test_writable_executable_mem" type="Functional" description="Test that applauncherd does not have the writable and executable memory" timeout="360" level="System" insignificant="true">
<step expected_result="0">source /tmp/session_bus_address.user; DISPLAY=:0 `pyversions -d` /usr/share/applauncherd-testscripts/test-func-launcher.py test_writable_executable_mem</step>
</case>
<case name="applauncherd__test_unix_signal_handlers" type="Functional" description="Test unixSignalHAndlers by killing booster-m and booster-d, singnal hup" timeout="360" level="System" insignificant="true">
<step expected_result="0">source /tmp/session_bus_address.user; DISPLAY=:0 `pyversions -d` /usr/share/applauncherd-testscripts/test-func-launcher.py test_unix_signal_handlers</step>
</case>
<case name="applauncherd__test_nonlaunchable_apps" type="Functional" description="Test for booster warning while invoking non launchable apps" timeout="360" level="System" insignificant="true">
<step expected_result="0">source /tmp/session_bus_address.user; DISPLAY=:0 `pyversions -d` /usr/share/applauncherd-testscripts/test-func-launcher.py test_nonlaunchable_apps</step>
</case>

@ -952,6 +952,27 @@ class launcher_tests (unittest.TestCase):
p = run_cmd_as_user('invoker --help')
self.assert_(p.wait() == 0, "'invoker --help' failed")
def test_unix_signal_handlers(self):
"""
Test unixSignalHAndlers by killing booster-m and booster-d, singnal hub
"""
mpid = get_pid('booster-m')
st, op = commands.getstatusoutput('kill -hup %s' % mpid)
time.sleep(2)
mpid_new = wait_for_app('booster-m')
self.assert_(mpid != mpid_new, "booster-m pid is not changed")
dpid = get_pid('booster-d')
st, op = commands.getstatusoutput('kill -hup %s' % dpid)
time.sleep(2)
dpid_new = wait_for_app('booster-d')
self.assert_(dpid != dpid_new, "booster-d pid is not changed")
def test_writable_executable_mem(self):
"""
Test that applauncherd does not have the writable and executable memory

Loading…
Cancel
Save