mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 15:33:39 +02:00
subprocess test: Check wait status correctly
Confusingly, g_spawn_check_exit_status() takes a wait status, not an exit status, so passing g_subprocess_get_exit_status() to it is incorrect (although both encodings happen to use 0 to encode success and a nonzero value to encode failure, so in practice this probably had the desired effect). Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
@@ -611,7 +611,7 @@ on_subprocess_exited (GObject *object,
|
||||
g_propagate_error (&data->error, error);
|
||||
}
|
||||
}
|
||||
g_spawn_check_exit_status (g_subprocess_get_exit_status (subprocess), &error);
|
||||
g_spawn_check_exit_status (g_subprocess_get_status (subprocess), &error);
|
||||
g_assert_no_error (error);
|
||||
data->events_pending--;
|
||||
if (data->events_pending == 0)
|
||||
|
Reference in New Issue
Block a user