Check cpuinfo_core objects in mock tests
diff --git a/test/galaxy-win-duos.cc b/test/galaxy-win-duos.cc
index dbecfc8..90ad913 100644
--- a/test/galaxy-win-duos.cc
+++ b/test/galaxy-win-duos.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);
}