diff options
Diffstat (limited to 'tests/autoptr.c')
-rw-r--r-- | tests/autoptr.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/autoptr.c b/tests/autoptr.c index faef432..51080f7 100644 --- a/tests/autoptr.c +++ b/tests/autoptr.c @@ -22,9 +22,11 @@ * This code is based on glib/tests/autoptr.c */ +#include "config.h" #include <glib.h> #include <grilo.h> +#ifdef HAVE_GRLNET #include <net/grl-net.h> static void @@ -33,6 +35,7 @@ test_grl_net_wc (void) g_autoptr (GrlNetWc) val = grl_net_wc_new (); g_assert_nonnull (val); } +#endif /* HAVE_GRLNET */ static void test_grl_data (void) @@ -87,7 +90,9 @@ main (int argc, grl_init (&argc, &argv); +#ifdef HAVE_GRLNET g_test_add_func ("/autoptr/grl_net_wc", test_grl_net_wc); +#endif g_test_add_func ("/autoptr/grl_data", test_grl_data); g_test_add_func ("/autoptr/grl_media", test_grl_media); |