From: Denis Kenzior <denkenz@gmail.com>
To: ofono@lists.linux.dev
Cc: Denis Kenzior <denkenz@gmail.com>
Subject: [PATCH 6/6] unit: Update to the new API
Date: Mon, 5 Feb 2024 15:31:27 -0600 [thread overview]
Message-ID: <20240205213150.1001245-6-denkenz@gmail.com> (raw)
In-Reply-To: <20240205213150.1001245-1-denkenz@gmail.com>
The function now returns stdbool instead of gboolean, so update the use
accordingly and to the new coding style.
---
unit/test-simutil.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/unit/test-simutil.c b/unit/test-simutil.c
index 530f624e6b0b..8364f200c665 100644
--- a/unit/test-simutil.c
+++ b/unit/test-simutil.c
@@ -97,14 +97,14 @@ static void test_validate_tlv(void)
unsigned char impi_invalid1[] = { 0x80, 0x4, 'F', '\0', 'O', '\0' };
unsigned char impi_invalid2[] = { 0x80, 0x4, 0xff, 0xff, 0xff, 0xff };
- g_assert(validate_utf8_tlv(impi_none) == FALSE);
- g_assert(validate_utf8_tlv(impi_empty) == TRUE);
- g_assert(validate_utf8_tlv(impi_term1) == TRUE);
- g_assert(validate_utf8_tlv(impi_term2) == TRUE);
- g_assert(validate_utf8_tlv(impi_term3) == TRUE);
- g_assert(validate_utf8_tlv(impi_term4) == TRUE);
- g_assert(validate_utf8_tlv(impi_invalid1) == FALSE);
- g_assert(validate_utf8_tlv(impi_invalid2) == FALSE);
+ g_assert(!validate_utf8_tlv(impi_none));
+ g_assert(validate_utf8_tlv(impi_empty));
+ g_assert(validate_utf8_tlv(impi_term1));
+ g_assert(validate_utf8_tlv(impi_term2));
+ g_assert(validate_utf8_tlv(impi_term3));
+ g_assert(validate_utf8_tlv(impi_term4));
+ g_assert(!validate_utf8_tlv(impi_invalid1));
+ g_assert(!validate_utf8_tlv(impi_invalid2));
}
static void test_ber_tlv_builder_mms(void)
--
2.43.0
next prev parent reply other threads:[~2024-02-05 21:32 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-05 21:31 [PATCH 1/6] stkagent: Use l_utf8_get_codepoint Denis Kenzior
2024-02-05 21:31 ` [PATCH 2/6] core: Remove g_utf8_strlen use Denis Kenzior
2024-02-05 21:31 ` [PATCH 3/6] unit: " Denis Kenzior
2024-02-05 21:31 ` [PATCH 4/6] qmimodem: Drop use of g_utf8_validate Denis Kenzior
2024-02-05 21:31 ` [PATCH 5/6] simutil: Drop use of g_utf8_validate_len Denis Kenzior
2024-02-05 21:31 ` Denis Kenzior [this message]
2024-02-06 16:30 ` [PATCH 1/6] stkagent: Use l_utf8_get_codepoint patchwork-bot+ofono
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240205213150.1001245-6-denkenz@gmail.com \
--to=denkenz@gmail.com \
--cc=ofono@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox