Browse Source

test: preparser: disable tests with external process where it can't be run

We could still test the part that use the internal preparser.
pull/200/head
Steve Lhomme 6 months ago
parent
commit
cfb274f6ad
  1. 4
      test/src/preparser/cmp_internal_external.c
  2. 2
      test/src/preparser/thumbnail.c
  3. 2
      test/src/preparser/thumbnail_to_files.c

4
test/src/preparser/cmp_internal_external.c

@ -254,6 +254,9 @@ static void test_preparser_cmp(vlc_object_t *obj, int i)
int main( void ) int main( void )
{ {
#if !defined(HAVE_VLC_PROCESS_SPAWN)
return 77;
#else
test_init(); test_init();
static const char * argv[] = { static const char * argv[] = {
@ -268,4 +271,5 @@ int main( void )
} }
libvlc_release( vlc ); libvlc_release( vlc );
#endif
} }

2
test/src/preparser/thumbnail.c

@ -249,9 +249,11 @@ int main( void )
test_thumbnails( vlc, false ); test_thumbnails( vlc, false );
test_cancel_thumbnail( vlc, false ); test_cancel_thumbnail( vlc, false );
#if !defined(HAVE_VLC_PROCESS_SPAWN)
fprintf(stderr, "Run with external preparser...\n"); fprintf(stderr, "Run with external preparser...\n");
test_thumbnails( vlc, true ); test_thumbnails( vlc, true );
test_cancel_thumbnail( vlc, true ); test_cancel_thumbnail( vlc, true );
#endif
libvlc_release( vlc ); libvlc_release( vlc );

2
test/src/preparser/thumbnail_to_files.c

@ -372,11 +372,13 @@ int main(int argc, const char *argv[])
if (ret != 0) { if (ret != 0) {
goto end; goto end;
} }
#if !defined(HAVE_VLC_PROCESS_SPAWN)
fprintf(stderr, "Run with external preparser...\n"); fprintf(stderr, "Run with external preparser...\n");
ret = run_test(vlc, true); ret = run_test(vlc, true);
if (ret != 0) { if (ret != 0) {
goto end; goto end;
} }
#endif
end: end:
libvlc_release(vlc); libvlc_release(vlc);

Loading…
Cancel
Save