[gnome-control-center] tests: Hide disabled test from compiler
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] tests: Hide disabled test from compiler
- Date: Tue, 17 Sep 2019 07:14:19 +0000 (UTC)
commit 9f6af56999aa2a9a607a6faec55c11c2362dc097
Author: Philip Chimento <philip endlessm com>
Date: Fri Sep 13 17:30:43 2019 -0700
tests: Hide disabled test from compiler
The part where this (currently disabled) test is added, is currently
hidden behind #if 0, so hide the test function as well. Otherwise the
compiler complains that the function isn't used.
tests/network/test-network-panel.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/tests/network/test-network-panel.c b/tests/network/test-network-panel.c
index 7ee765914..1f89e2187 100644
--- a/tests/network/test-network-panel.c
+++ b/tests/network/test-network-panel.c
@@ -121,6 +121,7 @@ fixture_set_up_wired (NetworkPanelFixture *fixture,
/*****************************************************************************/
+#if 0 /* See /network-panel-wired/vpn-sorting note */
static GtkWidget*
find_parent_of_type(GtkWidget *widget, GType parent)
{
@@ -132,6 +133,7 @@ find_parent_of_type(GtkWidget *widget, GType parent)
return NULL;
}
+#endif
/*****************************************************************************/
@@ -530,6 +532,7 @@ test_vpn_updating (NetworkPanelFixture *fixture,
/*****************************************************************************/
+#if 0 /* See note below, where this test is added */
static void
test_vpn_sorting (NetworkPanelFixture *fixture,
gconstpointer user_data)
@@ -636,6 +639,7 @@ test_vpn_sorting (NetworkPanelFixture *fixture,
g_assert_cmpint (g_list_index (list, a), <, g_list_index (list, b));
g_list_free (list);
}
+#endif
/*****************************************************************************/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]