[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [RFC 06/15] test-qapi-util: Use IGNORE_ERRORS instead of NU
From: |
Eduardo Habkost |
Subject: |
[Qemu-devel] [RFC 06/15] test-qapi-util: Use IGNORE_ERRORS instead of NULL |
Date: |
Tue, 13 Jun 2017 13:53:04 -0300 |
Signed-off-by: Eduardo Habkost <address@hidden>
---
tests/test-qapi-util.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/tests/test-qapi-util.c b/tests/test-qapi-util.c
index 3695034c32..374fa30078 100644
--- a/tests/test-qapi-util.c
+++ b/tests/test-qapi-util.c
@@ -25,7 +25,7 @@ static void test_qapi_enum_parse(void)
g_assert_cmpint(ret, ==, QTYPE_NONE);
ret = qapi_enum_parse(QType_lookup, "junk", QTYPE__MAX, -1,
- NULL);
+ IGNORE_ERRORS);
g_assert_cmpint(ret, ==, -1);
ret = qapi_enum_parse(QType_lookup, "junk", QTYPE__MAX, -1,
@@ -137,14 +137,14 @@ static void test_error_api(void)
{
Error *err = NULL;
- successfn(NULL);
- test_propagate(successfn, NULL);
+ successfn(IGNORE_ERRORS);
+ test_propagate(successfn, IGNORE_ERRORS);
- fail1(NULL);
- test_propagate(fail1, NULL);
+ fail1(IGNORE_ERRORS);
+ test_propagate(fail1, IGNORE_ERRORS);
- multifn(NULL);
- test_propagate(multifn, NULL);
+ multifn(IGNORE_ERRORS);
+ test_propagate(multifn, IGNORE_ERRORS);
successfn(&err);
g_assert(!err);
--
2.11.0.259.g40922b1
- [Qemu-devel] [RFC 00/15] Error API: Flag errors in *errp even if errors are being ignored, Eduardo Habkost, 2017/06/13
- [Qemu-devel] [RFC 02/15] error: New IGNORE_ERRORS macro, Eduardo Habkost, 2017/06/13
- [Qemu-devel] [RFC 01/15] tests: Test cases for error API, Eduardo Habkost, 2017/06/13
- [Qemu-devel] [RFC 03/15] Add qapi/error.h includes on files that will need it, Eduardo Habkost, 2017/06/13
- [Qemu-devel] [RFC 05/15] qapi: Use IGNORE_ERRORS instead of NULL on generated code, Eduardo Habkost, 2017/06/13
- [Qemu-devel] [RFC 06/15] test-qapi-util: Use IGNORE_ERRORS instead of NULL,
Eduardo Habkost <=
- [Qemu-devel] [RFC 08/15] error: New ERR_IS_* macros for checking Error** values, Eduardo Habkost, 2017/06/13
- [Qemu-devel] [RFC 07/15] Manual changes to use IGNORE_ERRORS instead of NULL, Eduardo Habkost, 2017/06/13
- [Qemu-devel] [RFC 10/15] test-qapi-util: Use ERR_IS_* macros, Eduardo Habkost, 2017/06/13
- [Qemu-devel] [RFC 11/15] Manual changes to use ERR_IS_* macros, Eduardo Habkost, 2017/06/13
- [Qemu-devel] [RFC 09/15] [coccinelle] Use ERR_IS_* macros, Eduardo Habkost, 2017/06/13
- [Qemu-devel] [RFC 12/15] error: Make IGNORED_ERRORS not a NULL pointer, Eduardo Habkost, 2017/06/13
- [Qemu-devel] [RFC 13/15] rdma: Simplify var declaration to avoid confusing Coccinelle, Eduardo Habkost, 2017/06/13
- [Qemu-devel] [RFC 04/15] [coccinelle] Use IGNORE_ERRORS instead of NULL as errp argument, Eduardo Habkost, 2017/06/13
- [Qemu-devel] [RFC 14/15] [coccinelle] Eliminate unnecessary local_err/error_propagate() usage, Eduardo Habkost, 2017/06/13
- [Qemu-devel] [RFC 15/15] [test only] Use 'Error *err[static 1]' instead of 'Error **errp' to catch NULL errp arguments, Eduardo Habkost, 2017/06/13