mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-24 22:46:15 +01:00
gio/tests/appmonitor: Use g_assert_no_errno()
Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
parent
b3b4ad4f94
commit
3468369625
@ -11,7 +11,7 @@ setup (Fixture *fixture,
|
||||
gconstpointer user_data)
|
||||
{
|
||||
fixture->applications_dir = g_build_filename (g_get_user_data_dir (), "applications", NULL);
|
||||
g_assert_cmpint (g_mkdir_with_parents (fixture->applications_dir, 0755), ==, 0);
|
||||
g_assert_no_errno (g_mkdir_with_parents (fixture->applications_dir, 0755));
|
||||
|
||||
g_test_message ("Using data directory: %s", g_get_user_data_dir ());
|
||||
}
|
||||
@ -20,7 +20,7 @@ static void
|
||||
teardown (Fixture *fixture,
|
||||
gconstpointer user_data)
|
||||
{
|
||||
g_assert_cmpint (g_rmdir (fixture->applications_dir), ==, 0);
|
||||
g_assert_no_errno (g_rmdir (fixture->applications_dir));
|
||||
g_clear_pointer (&fixture->applications_dir, g_free);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user