Check cpuinfo_core objects in mock tests
diff --git a/test/blu-r1-hd.cc b/test/blu-r1-hd.cc
index 162b877..6ed6284 100644
--- a/test/blu-r1-hd.cc
+++ b/test/blu-r1-hd.cc
@@ -30,6 +30,22 @@
}
}
+TEST(CORES, count) {
+ ASSERT_EQ(4, cpuinfo_cores_count);
+}
+
+TEST(CORES, processor_start) {
+ for (uint32_t i = 0; i < cpuinfo_cores_count; i++) {
+ ASSERT_EQ(i, cpuinfo_cores[i].processor_start);
+ }
+}
+
+TEST(CORES, processor_count) {
+ for (uint32_t i = 0; i < cpuinfo_cores_count; i++) {
+ ASSERT_EQ(1, cpuinfo_cores[i].processor_count);
+ }
+}
+
TEST(PACKAGES, count) {
ASSERT_EQ(1, cpuinfo_packages_count);
}