[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 23/39] tests/qtest: replace assert(false) with g_assert_not_reach
From: |
Pierrick Bouvier |
Subject: |
[PATCH 23/39] tests/qtest: replace assert(false) with g_assert_not_reached() |
Date: |
Tue, 10 Sep 2024 15:15:50 -0700 |
Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
---
tests/qtest/numa-test.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/tests/qtest/numa-test.c b/tests/qtest/numa-test.c
index ede418963cb..6d92baee860 100644
--- a/tests/qtest/numa-test.c
+++ b/tests/qtest/numa-test.c
@@ -162,7 +162,7 @@ static void pc_numa_cpu(const void *data)
} else if (socket == 1 && core == 1 && thread == 1) {
g_assert_cmpint(node, ==, 1);
} else {
- g_assert(false);
+ g_assert_not_reached();
}
qobject_unref(e);
}
@@ -207,7 +207,7 @@ static void spapr_numa_cpu(const void *data)
} else if (core == 3) {
g_assert_cmpint(node, ==, 1);
} else {
- g_assert(false);
+ g_assert_not_reached();
}
qobject_unref(e);
}
@@ -257,7 +257,7 @@ static void aarch64_numa_cpu(const void *data)
} else if (socket == 1 && cluster == 0 && core == 0 && thread == 0) {
g_assert_cmpint(node, ==, 0);
} else {
- g_assert(false);
+ g_assert_not_reached();
}
qobject_unref(e);
}
@@ -305,7 +305,7 @@ static void loongarch64_numa_cpu(const void *data)
} else if (socket == 1 && core == 0 && thread == 0) {
g_assert_cmpint(node, ==, 0);
} else {
- g_assert(false);
+ g_assert_not_reached();
}
qobject_unref(e);
}
@@ -367,7 +367,7 @@ static void pc_dynamic_cpu_cfg(const void *data)
} else if (socket == 1) {
g_assert_cmpint(node, ==, 0);
} else {
- g_assert(false);
+ g_assert_not_reached();
}
qobject_unref(e);
}
--
2.39.2
- Re: [PATCH 20/39] hw/ppc: replace assert(false) with g_assert_not_reached(), (continued)
[PATCH 21/39] migration: replace assert(false) with g_assert_not_reached(), Pierrick Bouvier, 2024/09/10
[PATCH 22/39] target/i386/kvm: replace assert(false) with g_assert_not_reached(), Pierrick Bouvier, 2024/09/10
[PATCH 19/39] hw/pci: replace assert(false) with g_assert_not_reached(), Pierrick Bouvier, 2024/09/10
[PATCH 23/39] tests/qtest: replace assert(false) with g_assert_not_reached(),
Pierrick Bouvier <=
[PATCH 24/39] accel/tcg: remove break after g_assert_not_reached(), Pierrick Bouvier, 2024/09/10
[PATCH 26/39] hw/acpi: remove break after g_assert_not_reached(), Pierrick Bouvier, 2024/09/10
[PATCH 27/39] hw/gpio: remove break after g_assert_not_reached(), Pierrick Bouvier, 2024/09/10
[PATCH 25/39] block: remove break after g_assert_not_reached(), Pierrick Bouvier, 2024/09/10
[PATCH 28/39] hw/misc: remove break after g_assert_not_reached(), Pierrick Bouvier, 2024/09/10
[PATCH 30/39] hw/pci-host: remove break after g_assert_not_reached(), Pierrick Bouvier, 2024/09/10