[Libosinfo] [libosinfo PATCH v2 1/2] test-os-resources: Fix typo in test_minimum_recommended_resources()

Fabiano Fidêncio fidencio at redhat.com
Tue Nov 13 11:25:16 UTC 2018


Thanks to this typo the test was iterating over a single OS, always.

Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
---
 tests/test-os-resources.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/test-os-resources.c b/tests/test-os-resources.c
index fe16b72..a8a9018 100644
--- a/tests/test-os-resources.c
+++ b/tests/test-os-resources.c
@@ -91,7 +91,7 @@ test_minimum_recommended_resources(void)
     oses = osinfo_list_get_elements(OSINFO_LIST(oslist));
 
     for (oses_it = oses; oses_it != NULL; oses_it = oses_it->next) {
-        OsinfoOs *os = oses->data;
+        OsinfoOs *os = oses_it->data;
         OsinfoResourcesList *minimum_list, *recommended_list;
         GList *minimum_resources, *recommended_resources;
         GList *resources_it;
-- 
2.19.1




More information about the Libosinfo mailing list