device: Make possible client vanished race testable using critical

The tests cannot currently parse the logs of fprintd. This means we need
to rely on fprintd aborting when a condition is hit that needs to be
tested.

This makes certain possible races when clients vanish testable.
This commit is contained in:
Benjamin Berg
2020-05-12 19:09:30 +02:00
parent fd9a86eca4
commit b63c76319f

View File

@ -643,7 +643,7 @@ _fprint_device_client_vanished (GDBusConnection *connection,
/* The session may have disappeared at this point if the device
* was already closing. */
if (session && !fp_device_close_sync (priv->dev, NULL, &error))
g_debug ("Error closing device after disconnect: %s", error->message);
g_critical ("Error closing device after disconnect: %s", error->message);
session_data_set_new (priv, NULL, NULL);
}