summaryrefslogtreecommitdiff
path: root/tests/test-sysroot-c.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-sysroot-c.c')
-rw-r--r--tests/test-sysroot-c.c25
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;