diff options
author | Colin Walters <walters@verbum.org> | 2023-05-01 14:24:29 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2023-05-02 08:42:19 -0400 |
commit | 453aed97f688c606622562145fa1f7c10096ba14 (patch) | |
tree | 8059e3887665735f14b31a44402d5d578fcdd876 /tests/test-sysroot-c.c | |
parent | a917813bb82b6ec7083da24064439b656971748d (diff) | |
download | ostree-453aed97f688c606622562145fa1f7c10096ba14.tar.gz |
tree-wide: Run clang-format
This is a one-time tree wide reformatting to ensure consistency
going forward.
Diffstat (limited to 'tests/test-sysroot-c.c')
-rw-r--r-- | tests/test-sysroot-c.c | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/tests/test-sysroot-c.c b/tests/test-sysroot-c.c index 82b4b1bf..34e86162 100644 --- a/tests/test-sysroot-c.c +++ b/tests/test-sysroot-c.c @@ -19,8 +19,8 @@ #include "config.h" -#include <stdlib.h> #include <gio/gio.h> +#include <stdlib.h> #include <string.h> #include "libglnx.h" @@ -40,8 +40,8 @@ run_sync (const char *cmdline, GError **error) static void test_sysroot_reload (gconstpointer data) { - OstreeSysroot *sysroot = (void*)data; - g_autoptr(GError) error = NULL; + OstreeSysroot *sysroot = (void *)data; + g_autoptr (GError) error = NULL; gboolean changed; if (!ostree_sysroot_load (sysroot, NULL, &error)) @@ -51,10 +51,14 @@ test_sysroot_reload (gconstpointer data) goto out; g_assert (!changed); - if (!run_sync ("ostree --repo=sysroot/ostree/repo pull-local --remote=testos testos-repo testos/buildmain/x86_64-runtime", &error)) + if (!run_sync ("ostree --repo=sysroot/ostree/repo pull-local --remote=testos testos-repo " + "testos/buildmain/x86_64-runtime", + &error)) goto out; - if (!run_sync ("ostree admin --sysroot=sysroot deploy --karg=root=LABEL=MOO --karg=quiet --os=testos testos:testos/buildmain/x86_64-runtime", &error)) + if (!run_sync ("ostree admin --sysroot=sysroot deploy --karg=root=LABEL=MOO --karg=quiet " + "--os=testos testos:testos/buildmain/x86_64-runtime", + &error)) goto out; if (!ostree_sysroot_load_if_changed (sysroot, &changed, NULL, &error)) @@ -65,14 +69,15 @@ test_sysroot_reload (gconstpointer data) goto out; g_assert (!changed); - out: +out: if (error) g_error ("%s", error->message); } -int main (int argc, char **argv) +int +main (int argc, char **argv) { - g_autoptr(GError) error = NULL; + g_autoptr (GError) error = NULL; glnx_unref_object OstreeSysroot *sysroot = NULL; g_test_init (&argc, &argv, NULL); @@ -83,8 +88,8 @@ int main (int argc, char **argv) g_test_add_data_func ("/sysroot-reload", sysroot, test_sysroot_reload); - return g_test_run(); - out: + return g_test_run (); +out: if (error) g_error ("%s", error->message); return 1; |