[gnome-control-center/wip/benzea/ci: 24/28] tests/network: Use g_assert_nonnull rather than testing for != NULL



commit e479aed65c2574207d8046f7c66535746f8dd7f8
Author: Benjamin Berg <bberg redhat com>
Date:   Thu May 24 18:40:58 2018 +0200

    tests/network: Use g_assert_nonnull rather than testing for != NULL
    
    Just a small code cleanup.

 tests/network/test-network-panel.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/tests/network/test-network-panel.c b/tests/network/test-network-panel.c
index 92a2fb91d..ba4f9ebd1 100644
--- a/tests/network/test-network-panel.c
+++ b/tests/network/test-network-panel.c
@@ -153,7 +153,7 @@ test_device_add (NetworkPanelFixture  *fixture,
   device_path = nm_object_get_path (NM_OBJECT (fixture->main_ether));
   g_debug("Device added: %s\n", device_path);
 
-  g_assert (gtk_test_find_label(fixture->shell, "Wired") != NULL);
+  g_assert_nonnull (gtk_test_find_label(fixture->shell, "Wired"));
 }
 
 static void


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