mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-25 16:46:52 +02:00
test_paths: Reindent to avoid tripping -Wmisleading-indentation
This fixes: glib/tests/testglib.c: In function ‘test_paths’: glib/tests/testglib.c:955:3: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation] if (g_test_verbose ()) ^~ glib/tests/testglib.c:958:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ { ^ https://bugzilla.gnome.org/show_bug.cgi?id=796385
This commit is contained in:
parent
2dce3ce125
commit
51d566ba6e
@ -955,18 +955,18 @@ test_paths (void)
|
|||||||
if (g_test_verbose ())
|
if (g_test_verbose ())
|
||||||
g_printerr ("checking g_canonicalize_filename() supports NULL...");
|
g_printerr ("checking g_canonicalize_filename() supports NULL...");
|
||||||
|
|
||||||
{
|
{
|
||||||
const gchar *relative_path = "./";
|
const gchar *relative_path = "./";
|
||||||
gchar *canonical_path = g_canonicalize_filename (relative_path, NULL);
|
gchar *canonical_path = g_canonicalize_filename (relative_path, NULL);
|
||||||
gchar *cwd = g_get_current_dir ();
|
gchar *cwd = g_get_current_dir ();
|
||||||
if (g_strcmp0 (canonical_path, cwd) != 0)
|
if (g_strcmp0 (canonical_path, cwd) != 0)
|
||||||
{
|
{
|
||||||
g_error ("\nfailed for \"%s\"==\"%s\" (returned: \"%s\")\n",
|
g_error ("\nfailed for \"%s\"==\"%s\" (returned: \"%s\")\n",
|
||||||
relative_path, cwd, canonical_path);
|
relative_path, cwd, canonical_path);
|
||||||
}
|
}
|
||||||
g_free (cwd);
|
g_free (cwd);
|
||||||
g_free (canonical_path);
|
g_free (canonical_path);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (g_test_verbose ())
|
if (g_test_verbose ())
|
||||||
g_printerr ("ok\n");
|
g_printerr ("ok\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user