Changes: Test for booster warning while invoking non launchable apps

RevBy: Olli Leppanen
pull/1/head
Nimika Keshri 15 years ago
parent 6159994d74
commit ac557d5f54

@ -30,6 +30,9 @@
<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_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>
<!--case name="applauncherd__test_application_specific_theming" type="Functional" description="Application specific theming tests" timeout="360" level="System" insignificant="true">
<step expected_result="0">source /tmp/session_bus_address.user; DISPLAY=:0 /usr/share/applauncherd-testscripts/tc_theming.rb name test_application_specific_theming</step>
</case>

@ -1232,6 +1232,20 @@ class launcher_tests (unittest.TestCase):
self.assert_(daemon_pid == daemon_pid_new, "New instance of applauncherd started")
self.assert_(st != 0, "Second instance of applauncherd started")
def test_nonlaunchable_apps(self):
"""
Test that Booster gives warning while trying to launch non launchable applications
Here fala_wid is a shell script and libebooster.so is a library
"""
st, op = commands.getstatusoutput("/usr/bin/invoker --type=m /usr/bin/fala_wid")
debug("The Warning is %s" %(op.split("\n")[0]))
pos = op.split("\n")[0].find("Booster: Loading invoked application failed:")
self.assert_(pos != -1, "The booster did not give warning")
st, op = commands.getstatusoutput("/usr/bin/invoker --type=m /usr/lib/applauncherd/libebooster.so")
debug("The Warning is %s" %(op.split("\n")[0]))
pos = op.split("\n")[0].find("Booster: Loading symbol 'main' failed:")
self.assert_(pos != -1, "The booster did not give warning")
# main
if __name__ == '__main__':

Loading…
Cancel
Save