[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 13/39] tests/unit: replace assert(0) with g_assert_not_reached()
From: |
Pierrick Bouvier |
Subject: |
[PATCH 13/39] tests/unit: replace assert(0) with g_assert_not_reached() |
Date: |
Tue, 10 Sep 2024 15:15:40 -0700 |
Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
---
tests/unit/test-xs-node.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/unit/test-xs-node.c b/tests/unit/test-xs-node.c
index ac94e7ed6c2..2f447a73fb8 100644
--- a/tests/unit/test-xs-node.c
+++ b/tests/unit/test-xs-node.c
@@ -212,7 +212,7 @@ static void compare_tx(gpointer key, gpointer val, gpointer
opaque)
printf("Comparison failure in TX %u after serdes:\n", tx_id);
dump_ref("Original", t1->root, 0);
dump_ref("Deserialised", t2->root, 0);
- g_assert(0);
+ g_assert_not_reached();
}
g_assert(t1->nr_nodes == t2->nr_nodes);
}
@@ -257,7 +257,7 @@ static void check_serdes(XenstoreImplState *s)
printf("Comparison failure in main tree after serdes:\n");
dump_ref("Original", s->root, 0);
dump_ref("Deserialised", s2->root, 0);
- g_assert(0);
+ g_assert_not_reached();
}
nr_transactions1 = g_hash_table_size(s->transactions);
--
2.39.2
- [PATCH 09/39] qobject: replace assert(0) with g_assert_not_reached(), (continued)
- [PATCH 09/39] qobject: replace assert(0) with g_assert_not_reached(), Pierrick Bouvier, 2024/09/10
- [PATCH 11/39] target/ppc: replace assert(0) with g_assert_not_reached(), Pierrick Bouvier, 2024/09/10
- [PATCH 12/39] tests/qtest: replace assert(0) with g_assert_not_reached(), Pierrick Bouvier, 2024/09/10
- [PATCH 10/39] system: replace assert(0) with g_assert_not_reached(), Pierrick Bouvier, 2024/09/10
- [PATCH 14/39] include/hw/s390x: replace assert(false) with g_assert_not_reached(), Pierrick Bouvier, 2024/09/10
- [PATCH 13/39] tests/unit: replace assert(0) with g_assert_not_reached(),
Pierrick Bouvier <=
- [PATCH 15/39] block: replace assert(false) with g_assert_not_reached(), Pierrick Bouvier, 2024/09/10
- [PATCH 16/39] hw/hyperv: replace assert(false) with g_assert_not_reached(), Pierrick Bouvier, 2024/09/10
- [PATCH 17/39] hw/net: replace assert(false) with g_assert_not_reached(), Pierrick Bouvier, 2024/09/10
- [PATCH 18/39] hw/nvme: replace assert(false) with g_assert_not_reached(), Pierrick Bouvier, 2024/09/10
- [PATCH 20/39] hw/ppc: replace assert(false) with g_assert_not_reached(), Pierrick Bouvier, 2024/09/10