mirror of
https://code.videolan.org/videolan/vlc
synced 2024-10-07 03:56:28 +02:00
Put timeout to the testsuite
This commit is contained in:
parent
508d87e61d
commit
65bc1a4e3d
@ -84,6 +84,9 @@ libvlc_instance_t * libvlc_new( int argc, const char *const *argv,
|
|||||||
{
|
{
|
||||||
libvlc_instance_t *p_new;
|
libvlc_instance_t *p_new;
|
||||||
|
|
||||||
|
for (int i = 0; i < argc; i++)
|
||||||
|
printf ("%d: %s\n", i, argv[i]);
|
||||||
|
|
||||||
libvlc_int_t *p_libvlc_int = libvlc_InternalCreate();
|
libvlc_int_t *p_libvlc_int = libvlc_InternalCreate();
|
||||||
if( !p_libvlc_int ) RAISENULL( "VLC initialization failed" );
|
if( !p_libvlc_int ) RAISENULL( "VLC initialization failed" );
|
||||||
|
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
static libvlc_exception_t ex;
|
static libvlc_exception_t ex;
|
||||||
|
|
||||||
@ -49,9 +50,11 @@ int main (int argc, char *argv[])
|
|||||||
libvlc_instance_t *vlc;
|
libvlc_instance_t *vlc;
|
||||||
const char *args[argc + 3];
|
const char *args[argc + 3];
|
||||||
|
|
||||||
args[0] = "-I";
|
alarm (30); /* Make sure "make check" does not get stuck */
|
||||||
args[1] = "dummy";
|
|
||||||
args[2] = "-vvv";
|
args[0] = "-vvv";
|
||||||
|
args[1] = "-I";
|
||||||
|
args[2] = "-dummy";
|
||||||
args[3] = "--plugin-path=..";
|
args[3] = "--plugin-path=..";
|
||||||
for (int i = 1; i < argc; i++)
|
for (int i = 1; i < argc; i++)
|
||||||
args[i + 3] = argv[i];
|
args[i + 3] = argv[i];
|
||||||
|
Loading…
Reference in New Issue
Block a user