[Libosinfo] [PATCH] test-devicelinklist: Remove duplicated assert

Fabiano Fidêncio fidencio at redhat.com
Mon Nov 19 17:31:14 UTC 2018


Having a duplicated g_assert_true() on CentOS7 breaks `make check` as
the compiler tries to make the second assert into a constant.

As the second assert was a typo anyways, let's just remove it in order
to fix `make check`.

Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
---
Pushed under build breakage rule.
---
 tests/test-devicelinklist.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/tests/test-devicelinklist.c b/tests/test-devicelinklist.c
index 99406d9..e689057 100644
--- a/tests/test-devicelinklist.c
+++ b/tests/test-devicelinklist.c
@@ -271,7 +271,6 @@ test_get_devices(void)
     g_assert_true(has1);
     g_assert_true(has2);
     g_assert_true(has3);
-    g_assert_true(has3);
     g_assert_true(has4);
     g_assert_false(hasBad);
 
-- 
2.19.1




More information about the Libosinfo mailing list