[PATCH] test-devicelinklist: Remove duplicated assert

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
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

_______________________________________________
Libosinfo mailing list
Libosinfo@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libosinfo




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux