diff options
author | Robert Ancell <robert.ancell@canonical.com> | 2013-10-30 17:17:40 -0700 |
---|---|---|
committer | Robert Ancell <robert.ancell@canonical.com> | 2013-10-30 17:17:40 -0700 |
commit | c31bbb71b9e679140c50a13dd7c51f78050f7cae (patch) | |
tree | 42934b054c3ef25d2310a0f90c752e210188a8d6 /tests | |
parent | 62750ba2ad024c32b6c6c46c5f4cf9a9638c1ec4 (diff) | |
download | lightdm-c31bbb71b9e679140c50a13dd7c51f78050f7cae.tar.gz |
Fix crash if switching to greeter and it isn't installed
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Makefile.am | 4 | ||||
-rw-r--r-- | tests/scripts/autologin-invalid-greeter.conf | 30 | ||||
-rw-r--r-- | tests/scripts/login-invalid-greeter.conf | 7 | ||||
-rwxr-xr-x | tests/test-autologin-invalid-greeter | 2 | ||||
-rwxr-xr-x | tests/test-login-invalid-greeter | 2 |
5 files changed, 45 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index c121d6dd..92014235 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -22,6 +22,7 @@ TESTS = \ test-autologin-guest-in-background \ test-autologin-timeout-in-background \ test-autologin-invalid-user \ + test-autologin-invalid-greeter \ test-autologin-invalid-session \ test-crash-authenticate \ test-autologin-xserver-crash \ @@ -72,6 +73,7 @@ TESTS = \ test-language \ test-language-no-accounts-service \ test-login-crash-authenticate \ + test-login-invalid-greeter \ test-login-gobject \ test-login-gobject-manual \ test-login-gobject-manual-previous-session \ @@ -307,6 +309,7 @@ EXTRA_DIST = \ scripts/autologin-guest-logout.conf \ scripts/autologin-guest-timeout.conf \ scripts/autologin-in-background.conf \ + scripts/autologin-invalid-greeter.conf \ scripts/autologin-guest-in-background.conf \ scripts/autologin-timeout-in-background.conf \ scripts/autologin-invalid-session.conf \ @@ -362,6 +365,7 @@ EXTRA_DIST = \ scripts/login-guest-logout.conf \ scripts/login-guest-no-setup-script.conf \ scripts/login-info-prompt.conf \ + scripts/login-invalid-greeter.conf \ scripts/login-invalid-session.conf \ scripts/login-invalid-user.conf \ scripts/login-logout.conf \ diff --git a/tests/scripts/autologin-invalid-greeter.conf b/tests/scripts/autologin-invalid-greeter.conf new file mode 100644 index 00000000..31616422 --- /dev/null +++ b/tests/scripts/autologin-invalid-greeter.conf @@ -0,0 +1,30 @@ +# +# Check quits if autologin session ends and no valid greeter +# + +[SeatDefaults] +autologin-user=have-password1 +user-session=default + +#?RUNNER DAEMON-START + +# X server starts +#?XSERVER-0 START VT=7 + +# Daemon connects when X server is ready +#?*XSERVER-0 INDICATE-READY +#?XSERVER-0 INDICATE-READY +#?XSERVER-0 ACCEPT-CONNECT + +# Session starts +#?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 DESKTOP_SESSION=default USER=have-password1 +#?XSERVER-0 ACCEPT-CONNECT +#?SESSION-X-0 CONNECT-XSERVER + +# Logout session +#?*SESSION-X-0 LOGOUT + +# X server stops +#?XSERVER-0 TERMINATE SIGNAL=15 + +#?RUNNER DAEMON-EXIT STATUS=1 diff --git a/tests/scripts/login-invalid-greeter.conf b/tests/scripts/login-invalid-greeter.conf new file mode 100644 index 00000000..8efa0ceb --- /dev/null +++ b/tests/scripts/login-invalid-greeter.conf @@ -0,0 +1,7 @@ +# +# Check fails to start if invalid greeter +# + +#?RUNNER DAEMON-START + +#?RUNNER DAEMON-EXIT STATUS=1 diff --git a/tests/test-autologin-invalid-greeter b/tests/test-autologin-invalid-greeter new file mode 100755 index 00000000..5489c7a5 --- /dev/null +++ b/tests/test-autologin-invalid-greeter @@ -0,0 +1,2 @@ +#!/bin/sh +./src/dbus-env ./src/test-runner autologin-invalid-greeter INVALID diff --git a/tests/test-login-invalid-greeter b/tests/test-login-invalid-greeter new file mode 100755 index 00000000..ad572e6e --- /dev/null +++ b/tests/test-login-invalid-greeter @@ -0,0 +1,2 @@ +#!/bin/sh +./src/dbus-env ./src/test-runner login-invalid-greeter INVALID |