[glib/wip/smcv/assert-no-errno: 2/5] gio/tests/appmonitor: 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: 2/5] gio/tests/appmonitor: Use g_assert_no_errno()
- Date: Sat, 31 Oct 2020 12:34:09 +0000 (UTC)
commit 346836962521cce76f3cbd53259a985d3bef6a2a
Author: Simon McVittie <smcv collabora com>
Date: Sat Oct 31 12:24:05 2020 +0000
gio/tests/appmonitor: Use g_assert_no_errno()
Signed-off-by: Simon McVittie <smcv collabora com>
gio/tests/appmonitor.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gio/tests/appmonitor.c b/gio/tests/appmonitor.c
index c4e0721ea..725d91e5c 100644
--- a/gio/tests/appmonitor.c
+++ b/gio/tests/appmonitor.c
@@ -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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]