tests: fix simple-launch-lines when jpeg lib isn't present

JPEG detection in configure.ac defines HAVE_JPEG to 0 if the
jpeg lib isn't found, rather then not defining it.

https://bugzilla.gnome.org/show_bug.cgi?id=769197
This commit is contained in:
Vincent Penquerc'h 2016-07-26 17:01:55 +01:00
parent efa5b219e6
commit c94c0ad834

View file

@ -188,6 +188,8 @@ GST_START_TEST (test_glfilterapp)
} }
GST_END_TEST GST_END_TEST
#ifdef HAVE_PNG
#if HAVE_JPEG
GST_START_TEST (test_gloverlay) GST_START_TEST (test_gloverlay)
{ {
const gchar *s; const gchar *s;
@ -207,6 +209,8 @@ GST_START_TEST (test_gloverlay)
} }
GST_END_TEST GST_END_TEST
#endif
#endif
#if GST_GL_HAVE_OPENGL #if GST_GL_HAVE_OPENGL
#define N_SRCS 13 #define N_SRCS 13
GST_START_TEST (test_gltestsrc) GST_START_TEST (test_gltestsrc)
@ -333,7 +337,7 @@ simple_launch_lines_suite (void)
tcase_add_test (tc_chain, test_glshader); tcase_add_test (tc_chain, test_glshader);
tcase_add_test (tc_chain, test_glfilterapp); tcase_add_test (tc_chain, test_glfilterapp);
#ifdef HAVE_PNG #ifdef HAVE_PNG
#ifdef HAVE_JPEG #if HAVE_JPEG
tcase_add_test (tc_chain, test_gloverlay); tcase_add_test (tc_chain, test_gloverlay);
#endif #endif
#endif #endif
@ -346,7 +350,7 @@ simple_launch_lines_suite (void)
#ifdef HAVE_PNG #ifdef HAVE_PNG
tcase_add_test (tc_chain, test_gldifferencematte); tcase_add_test (tc_chain, test_gldifferencematte);
/* tcase_add_test (tc_chain, test_glbumper);*/ /* tcase_add_test (tc_chain, test_glbumper);*/
#ifdef HAVE_JPEG #if HAVE_JPEG
#endif /* HAVE_JPEG */ #endif /* HAVE_JPEG */
#endif /* HAVE_PNG */ #endif /* HAVE_PNG */
#endif /* GST_GL_HAVE_OPENGL */ #endif /* GST_GL_HAVE_OPENGL */