[Libosinfo] [libosinfo PATCH] test-os: Fix make syntax-check

Fabiano Fidêncio fidencio at redhat.com
Thu Jan 24 14:14:17 UTC 2019


While applying the last patches a few trailing whitespaces have been
introduced, making `make syntax-check` fail.

Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
---
Pushed under 'fix breakage' rule!
---

 tests/test-os.c | 32 ++++++++++++++++----------------
 1 file changed, 16 insertions(+), 16 deletions(-)

diff --git a/tests/test-os.c b/tests/test-os.c
index f4e758d..178bd15 100644
--- a/tests/test-os.c
+++ b/tests/test-os.c
@@ -236,34 +236,34 @@ static void test_resources_basic(void)
 
     resources_list = osinfo_os_get_minimum_resources(os);
     resources = OSINFO_RESOURCES(osinfo_list_get_nth(OSINFO_LIST(resources_list), 0));
-    g_assert_cmpint(osinfo_resources_get_n_cpus(resources), ==, 1);    
-    g_assert_cmpint(osinfo_resources_get_cpu(resources), ==, 1);    
-    g_assert_cmpint(osinfo_resources_get_ram(resources), ==, 1);    
-    g_assert_cmpint(osinfo_resources_get_storage(resources), ==, 1);    
+    g_assert_cmpint(osinfo_resources_get_n_cpus(resources), ==, 1);
+    g_assert_cmpint(osinfo_resources_get_cpu(resources), ==, 1);
+    g_assert_cmpint(osinfo_resources_get_ram(resources), ==, 1);
+    g_assert_cmpint(osinfo_resources_get_storage(resources), ==, 1);
 
     g_clear_object(&resources_list);
     resources_list = osinfo_os_get_recommended_resources(os);
     resources = OSINFO_RESOURCES(osinfo_list_get_nth(OSINFO_LIST(resources_list), 0));
-    g_assert_cmpint(osinfo_resources_get_n_cpus(resources), ==, 2);    
-    g_assert_cmpint(osinfo_resources_get_cpu(resources), ==, 2);    
-    g_assert_cmpint(osinfo_resources_get_ram(resources), ==, 2);    
-    g_assert_cmpint(osinfo_resources_get_storage(resources), ==, 2);    
+    g_assert_cmpint(osinfo_resources_get_n_cpus(resources), ==, 2);
+    g_assert_cmpint(osinfo_resources_get_cpu(resources), ==, 2);
+    g_assert_cmpint(osinfo_resources_get_ram(resources), ==, 2);
+    g_assert_cmpint(osinfo_resources_get_storage(resources), ==, 2);
 
     g_clear_object(&resources_list);
     resources_list = osinfo_os_get_maximum_resources(os);
     resources = OSINFO_RESOURCES(osinfo_list_get_nth(OSINFO_LIST(resources_list), 0));
-    g_assert_cmpint(osinfo_resources_get_n_cpus(resources), ==, 3);    
-    g_assert_cmpint(osinfo_resources_get_cpu(resources), ==, 3);    
-    g_assert_cmpint(osinfo_resources_get_ram(resources), ==, 3);    
-    g_assert_cmpint(osinfo_resources_get_storage(resources), ==, 3);    
+    g_assert_cmpint(osinfo_resources_get_n_cpus(resources), ==, 3);
+    g_assert_cmpint(osinfo_resources_get_cpu(resources), ==, 3);
+    g_assert_cmpint(osinfo_resources_get_ram(resources), ==, 3);
+    g_assert_cmpint(osinfo_resources_get_storage(resources), ==, 3);
 
     g_clear_object(&resources_list);
     resources_list = osinfo_os_get_network_install_resources(os);
     resources = OSINFO_RESOURCES(osinfo_list_get_nth(OSINFO_LIST(resources_list), 0));
-    g_assert_cmpint(osinfo_resources_get_n_cpus(resources), ==, 4);    
-    g_assert_cmpint(osinfo_resources_get_cpu(resources), ==, 4);    
-    g_assert_cmpint(osinfo_resources_get_ram(resources), ==, 4);    
-    g_assert_cmpint(osinfo_resources_get_storage(resources), ==, 4);    
+    g_assert_cmpint(osinfo_resources_get_n_cpus(resources), ==, 4);
+    g_assert_cmpint(osinfo_resources_get_cpu(resources), ==, 4);
+    g_assert_cmpint(osinfo_resources_get_ram(resources), ==, 4);
+    g_assert_cmpint(osinfo_resources_get_storage(resources), ==, 4);
 
     g_object_unref(resources_list);
     g_object_unref(db);
-- 
2.19.2




More information about the Libosinfo mailing list