summary refs log tree commit diff stats
path: root/tests/qtest/rtl8139-test.c
diff options
context:
space:
mode:
authorPierrick Bouvier <pierrick.bouvier@linaro.org>2024-09-12 00:38:45 -0700
committerThomas Huth <thuth@redhat.com>2024-09-17 10:50:39 +0200
commit74dcb2535ddb459cec3ab0c136924e39856686c3 (patch)
tree11a7fc7876c32e57a8b38cc2da334f0ab6c78fba /tests/qtest/rtl8139-test.c
parent8d5ab746b1e6668ffb0378820b25665b385c8573 (diff)
downloadfocaccia-qemu-74dcb2535ddb459cec3ab0c136924e39856686c3.tar.gz
focaccia-qemu-74dcb2535ddb459cec3ab0c136924e39856686c3.zip
tests/qtest: replace assert(0) with g_assert_not_reached()
This patch is part of a series that moves towards a consistent use of
g_assert_not_reached() rather than an ad hoc mix of different
assertion mechanisms.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Message-ID: <20240912073921.453203-13-pierrick.bouvier@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'tests/qtest/rtl8139-test.c')
-rw-r--r--tests/qtest/rtl8139-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qtest/rtl8139-test.c b/tests/qtest/rtl8139-test.c
index eedf90f65a..55f671f2f5 100644
--- a/tests/qtest/rtl8139-test.c
+++ b/tests/qtest/rtl8139-test.c
@@ -65,7 +65,7 @@ PORT(IntrMask, w, 0x3c)
 PORT(IntrStatus, w, 0x3E)
 PORT(TimerInt, l, 0x54)
 
-#define fatal(...) do { g_test_message(__VA_ARGS__); g_assert(0); } while (0)
+#define fatal(...) do { g_test_message(__VA_ARGS__); g_assert_not_reached(); } while (0)
 
 static void test_timer(void)
 {