test-unity-compositor-command \
test-unity-compositor-fail-start \
test-unity-compositor-fail-ready \
+ test-unity-compositor-crash \
test-unity-compositor-fallback \
test-unity-compositor-next-session \
test-unity-compositor-mir-next-session \
scripts/system-xauthority.conf \
scripts/unity-autologin.conf \
scripts/unity-compositor-command.conf \
+ scripts/unity-compositor-crash.conf \
scripts/unity-compositor-fail-ready.conf \
scripts/unity-compositor-fail-start.conf \
scripts/unity-compositor-fallback.conf \
--- /dev/null
+#
+# Check LightDM ? if the compositor crashes
+#
+
+[SeatDefaults]
+type=unity
+
+#?RUNNER DAEMON-START
+
+# System compositor starts
+#?UNITY-SYSTEM-COMPOSITOR START FILE=/tmp/mir_socket VT=7 XDG_VTNR=7
+#?*UNITY-SYSTEM-COMPOSITOR READY
+
+# X server starts
+#?XSERVER-0 START SEAT=seat0 MIR-ID=x-0
+
+# Daemon connects when X server is ready
+#?*XSERVER-0 INDICATE-READY
+#?XSERVER-0 INDICATE-READY
+#?XSERVER-0 ACCEPT-CONNECT
+
+# Greeter starts
+#?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter
+#?XSERVER-0 ACCEPT-CONNECT
+#?GREETER-X-0 CONNECT-XSERVER
+#?GREETER-X-0 CONNECT-TO-DAEMON
+#?GREETER-X-0 CONNECTED-TO-DAEMON
+
+# System compositor switches to greeter
+#?UNITY-SYSTEM-COMPOSITOR SET-ACTIVE-SESSION ID=x-0
+
+# Crash system compositor
+#?*UNITY-SYSTEM-COMPOSITOR CRASH
+
+# Daemon exits with error code
+#?GREETER-X-0 TERMINATE SIGNAL=15
+#?XSERVER-0 TERMINATE SIGNAL=15
+#?RUNNER DAEMON-EXIT STATUS=1
# Timeout and compositor is stopped
#?UNITY-SYSTEM-COMPOSITOR TERMINATE SIGNAL=15
-# Cleanup
+# Daemon exits with error code
#?RUNNER DAEMON-EXIT STATUS=1
#?UNITY-SYSTEM-COMPOSITOR START FILE=/tmp/mir_socket VT=7 XDG_VTNR=7
#?UNITY-SYSTEM-COMPOSITOR EXIT CODE=1
-# Cleanup
+# Daemon exits with error code
#?RUNNER DAEMON-EXIT STATUS=1
write_message (USC_MESSAGE_PONG, NULL, 0);
else if (strcmp (request, "UNITY-SYSTEM-COMPOSITOR READY") == 0)
write_message (USC_MESSAGE_READY, NULL, 0);
+ else if (strcmp (request, "UNITY-SYSTEM-COMPOSITOR CRASH") == 0)
+ kill (getpid (), SIGSEGV);
}
int
--- /dev/null
+#!/bin/sh
+./src/dbus-env ./src/test-runner unity-compositor-crash test-gobject-greeter