From 31816e1bec9221308a3106fbe85332dcd6d77750 Mon Sep 17 00:00:00 2001 From: Sam Thursfield Date: Mon, 17 Jun 2024 09:37:57 +0200 Subject: [PATCH] TEMP: Sabotage shutdown on error This attempts to cause the good boot to break, in the way that https://gitlab.gnome.org/GNOME/openqa-tests/-/issues/62 may occur. --- src/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.c b/src/main.c index 4be47258e..50da23a7f 100644 --- a/src/main.c +++ b/src/main.c @@ -712,6 +712,8 @@ main (int argc, char **argv) { g_message ("Execution of main.js threw exception: %s", error->message); g_error_free (error); + g_message ("Sleeping 100 seconds to sabotage startup. Attempt to reproduce https://gitlab.gnome.org/GNOME/openqa-tests/-/issues/62"); + g_usleep (100 * G_USEC_PER_SEC); /* We just exit() here, since in a development environment you'll get the * error in your shell output, and it's way better than a busted WM, * which typically manifests as a white screen.