mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-24 14:36:13 +01: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 ())
|
||||
g_printerr ("checking g_canonicalize_filename() supports NULL...");
|
||||
|
||||
{
|
||||
const gchar *relative_path = "./";
|
||||
gchar *canonical_path = g_canonicalize_filename (relative_path, NULL);
|
||||
gchar *cwd = g_get_current_dir ();
|
||||
if (g_strcmp0 (canonical_path, cwd) != 0)
|
||||
{
|
||||
g_error ("\nfailed for \"%s\"==\"%s\" (returned: \"%s\")\n",
|
||||
relative_path, cwd, canonical_path);
|
||||
}
|
||||
g_free (cwd);
|
||||
g_free (canonical_path);
|
||||
}
|
||||
{
|
||||
const gchar *relative_path = "./";
|
||||
gchar *canonical_path = g_canonicalize_filename (relative_path, NULL);
|
||||
gchar *cwd = g_get_current_dir ();
|
||||
if (g_strcmp0 (canonical_path, cwd) != 0)
|
||||
{
|
||||
g_error ("\nfailed for \"%s\"==\"%s\" (returned: \"%s\")\n",
|
||||
relative_path, cwd, canonical_path);
|
||||
}
|
||||
g_free (cwd);
|
||||
g_free (canonical_path);
|
||||
}
|
||||
|
||||
if (g_test_verbose ())
|
||||
g_printerr ("ok\n");
|
||||
|
Loading…
Reference in New Issue
Block a user