[glib/wip/smcv/assert-no-errno: 3/5] gio/tests/gsettings: Use g_assert_no_errno()
- From: Simon McVittie <smcv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/smcv/assert-no-errno: 3/5] gio/tests/gsettings: Use g_assert_no_errno()
- Date: Sat, 31 Oct 2020 12:34:09 +0000 (UTC)
commit 3f9f7da0f18bafa59c62a2e876cee8cd87934c1a
Author: Simon McVittie <smcv collabora com>
Date: Sat Oct 31 12:24:22 2020 +0000
gio/tests/gsettings: Use g_assert_no_errno()
Signed-off-by: Simon McVittie <smcv collabora com>
gio/tests/gsettings.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gio/tests/gsettings.c b/gio/tests/gsettings.c
index baadca8f5..dba0493d6 100644
--- a/gio/tests/gsettings.c
+++ b/gio/tests/gsettings.c
@@ -39,7 +39,7 @@ static void
teardown (Fixture *fixture,
gconstpointer user_data)
{
- g_assert_cmpint (g_rmdir (fixture->tmp_dir), ==, 0);
+ g_assert_no_errno (g_rmdir (fixture->tmp_dir));
g_clear_pointer (&fixture->tmp_dir, g_free);
}
@@ -1860,7 +1860,7 @@ test_keyfile (Fixture *fixture,
/* Clean up the temporary directory. */
g_chmod (keyfile_path, 0777);
- g_assert_cmpint (g_remove (store_path), ==, 0);
+ g_assert_no_errno (g_remove (store_path));
g_rmdir (keyfile_path);
g_free (store_path);
g_free (keyfile_path);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]