]> git.sesse.net Git - vlc/blob - test/libvlc/core.c
LibVLC core: remove exceptions
[vlc] / test / libvlc / core.c
1 /*
2  * core.c - libvlc smoke test
3  *
4  * $Id$
5  */
6
7 /**********************************************************************
8  *  Copyright (C) 2007 RĂ©mi Denis-Courmont.                           *
9  *  This program is free software; you can redistribute and/or modify *
10  *  it under the terms of the GNU General Public License as published *
11  *  by the Free Software Foundation; version 2 of the license, or (at *
12  *  your option) any later version.                                   *
13  *                                                                    *
14  *  This program is distributed in the hope that it will be useful,   *
15  *  but WITHOUT ANY WARRANTY; without even the implied warranty of    *
16  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.              *
17  *  See the GNU General Public License for more details.              *
18  *                                                                    *
19  *  You should have received a copy of the GNU General Public License *
20  *  along with this program; if not, you can get it from:             *
21  *  http://www.gnu.org/copyleft/gpl.html                              *
22  **********************************************************************/
23
24 #include "test.h"
25
26 static void test_core (const char ** argv, int argc)
27 {
28     libvlc_instance_t *vlc;
29
30     log ("Testing core\n");
31
32     libvlc_exception_init (&ex);
33     vlc = libvlc_new (argc, argv);
34     assert (vlc != NULL);
35
36     libvlc_retain (vlc);
37     libvlc_release (vlc);
38     libvlc_release (vlc);
39 }
40
41
42 int main (void)
43 {
44     test_init();
45
46     test_core (test_defaults_args, test_defaults_nargs);
47
48     return 0;
49 }