summaryrefslogtreecommitdiff
path: root/test/core/test-profile.c
diff options
context:
space:
mode:
authorSimon McVittie <smcv@collabora.com>2021-03-26 12:16:57 +0000
committerSimon McVittie <smcv@collabora.com>2021-03-26 12:22:14 +0000
commit97590d6071d8deb82e09794119c9e680a3488c49 (patch)
treed67c810b60acf580f700a8369857b290ef5948f3 /test/core/test-profile.c
parent6f9838a8736557534c06f1abc7e2ac4f4ab4bf89 (diff)
downloaddbus-glib-97590d6071d8deb82e09794119c9e680a3488c49.tar.gz
test: Compare integers using g_assert_cmpint(), g_assert_cmpuint()
Signed-off-by: Simon McVittie <smcv@collabora.com>
Diffstat (limited to 'test/core/test-profile.c')
-rw-r--r--test/core/test-profile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/core/test-profile.c b/test/core/test-profile.c
index 015d200..5338e07 100644
--- a/test/core/test-profile.c
+++ b/test/core/test-profile.c
@@ -613,7 +613,7 @@ read_and_drop_on_floor (int fd,
char *allocated;
char not_allocated[512+PAYLOAD_SIZE];
- g_assert (count < (int) sizeof(not_allocated));
+ g_assert_cmpint (count, <, (int) sizeof (not_allocated));
if (fake_malloc_overhead)
{
@@ -671,7 +671,7 @@ write_junk (int fd,
char *allocated;
char not_allocated[512+PAYLOAD_SIZE] = { '\0', };
- g_assert (count < (int) sizeof(not_allocated));
+ g_assert_cmpint (count, <, (int) sizeof (not_allocated));
if (fake_malloc_overhead)
{