Skip to content
Snippets Groups Projects
Commit 853219c6 authored by Simon McVittie's avatar Simon McVittie
Browse files

tests: Assert that the fake home didn't already exist

parent 0de4fc98
No related branches found
No related tags found
No related merge requests found
Pipeline #4243 failed
......@@ -57,7 +57,9 @@ fake_home_new (const gchar *home)
g_assert_cmpstr (dirname, !=, "/tmp");
g_assert_cmpstr (dirname, !=, "/var/tmp");
fake_home->home = g_strdup (home);
g_assert_cmpint (g_mkdir_with_parents (fake_home->home, 0755), ==, 0);
g_assert_cmpint (g_mkdir_with_parents (dirname, 0755) == 0 ? 0 : errno, ==, 0);
/* It should not already exist */
g_assert_cmpint (g_mkdir (fake_home->home, 0755) == 0 ? 0 : errno, ==, 0);
g_free (dirname);
}
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment