annotate src/tests/test_harness.c @ 4318:8e5d510672ee

minor fix
author Yoshiki Yazawa <yaz@cc.rim.or.jp>
date Tue, 04 Mar 2008 21:09:42 +0900
parents 740c6f845554
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3285
740c6f845554 revise tuple formatting engine logic
William Pitcock <nenolod@atheme-project.org>
parents:
diff changeset
1 /*
740c6f845554 revise tuple formatting engine logic
William Pitcock <nenolod@atheme-project.org>
parents:
diff changeset
2 * Audacious
740c6f845554 revise tuple formatting engine logic
William Pitcock <nenolod@atheme-project.org>
parents:
diff changeset
3 * Copyright (c) 2007 William Pitcock
740c6f845554 revise tuple formatting engine logic
William Pitcock <nenolod@atheme-project.org>
parents:
diff changeset
4 *
740c6f845554 revise tuple formatting engine logic
William Pitcock <nenolod@atheme-project.org>
parents:
diff changeset
5 * This program is free software; you can redistribute it and/or modify
740c6f845554 revise tuple formatting engine logic
William Pitcock <nenolod@atheme-project.org>
parents:
diff changeset
6 * it under the terms of the GNU General Public License as published by
740c6f845554 revise tuple formatting engine logic
William Pitcock <nenolod@atheme-project.org>
parents:
diff changeset
7 * the Free Software Foundation; under version 3 of the License.
740c6f845554 revise tuple formatting engine logic
William Pitcock <nenolod@atheme-project.org>
parents:
diff changeset
8 *
740c6f845554 revise tuple formatting engine logic
William Pitcock <nenolod@atheme-project.org>
parents:
diff changeset
9 * This program is distributed in the hope that it will be useful,
740c6f845554 revise tuple formatting engine logic
William Pitcock <nenolod@atheme-project.org>
parents:
diff changeset
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
740c6f845554 revise tuple formatting engine logic
William Pitcock <nenolod@atheme-project.org>
parents:
diff changeset
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
740c6f845554 revise tuple formatting engine logic
William Pitcock <nenolod@atheme-project.org>
parents:
diff changeset
12 * GNU General Public License for more details.
740c6f845554 revise tuple formatting engine logic
William Pitcock <nenolod@atheme-project.org>
parents:
diff changeset
13 *
740c6f845554 revise tuple formatting engine logic
William Pitcock <nenolod@atheme-project.org>
parents:
diff changeset
14 * You should have received a copy of the GNU General Public License
740c6f845554 revise tuple formatting engine logic
William Pitcock <nenolod@atheme-project.org>
parents:
diff changeset
15 * along with this program. If not, see <http://www.gnu.org/licenses>.
740c6f845554 revise tuple formatting engine logic
William Pitcock <nenolod@atheme-project.org>
parents:
diff changeset
16 *
740c6f845554 revise tuple formatting engine logic
William Pitcock <nenolod@atheme-project.org>
parents:
diff changeset
17 * The Audacious team does not consider modular code linking to
740c6f845554 revise tuple formatting engine logic
William Pitcock <nenolod@atheme-project.org>
parents:
diff changeset
18 * Audacious or using our public API to be a derived work.
740c6f845554 revise tuple formatting engine logic
William Pitcock <nenolod@atheme-project.org>
parents:
diff changeset
19 */
740c6f845554 revise tuple formatting engine logic
William Pitcock <nenolod@atheme-project.org>
parents:
diff changeset
20
740c6f845554 revise tuple formatting engine logic
William Pitcock <nenolod@atheme-project.org>
parents:
diff changeset
21 #include <glib.h>
740c6f845554 revise tuple formatting engine logic
William Pitcock <nenolod@atheme-project.org>
parents:
diff changeset
22 #include <mowgli.h>
740c6f845554 revise tuple formatting engine logic
William Pitcock <nenolod@atheme-project.org>
parents:
diff changeset
23
740c6f845554 revise tuple formatting engine logic
William Pitcock <nenolod@atheme-project.org>
parents:
diff changeset
24 extern int test_run(gint argc, const gchar *argv[]);
740c6f845554 revise tuple formatting engine logic
William Pitcock <nenolod@atheme-project.org>
parents:
diff changeset
25
740c6f845554 revise tuple formatting engine logic
William Pitcock <nenolod@atheme-project.org>
parents:
diff changeset
26 int
740c6f845554 revise tuple formatting engine logic
William Pitcock <nenolod@atheme-project.org>
parents:
diff changeset
27 main(gint argc, const gchar *argv[])
740c6f845554 revise tuple formatting engine logic
William Pitcock <nenolod@atheme-project.org>
parents:
diff changeset
28 {
740c6f845554 revise tuple formatting engine logic
William Pitcock <nenolod@atheme-project.org>
parents:
diff changeset
29 g_thread_init(NULL);
740c6f845554 revise tuple formatting engine logic
William Pitcock <nenolod@atheme-project.org>
parents:
diff changeset
30
740c6f845554 revise tuple formatting engine logic
William Pitcock <nenolod@atheme-project.org>
parents:
diff changeset
31 mowgli_init();
740c6f845554 revise tuple formatting engine logic
William Pitcock <nenolod@atheme-project.org>
parents:
diff changeset
32
740c6f845554 revise tuple formatting engine logic
William Pitcock <nenolod@atheme-project.org>
parents:
diff changeset
33 if (!g_thread_supported())
740c6f845554 revise tuple formatting engine logic
William Pitcock <nenolod@atheme-project.org>
parents:
diff changeset
34 mowgli_log("Warning: GThread not supported. Some tests may fail.");
740c6f845554 revise tuple formatting engine logic
William Pitcock <nenolod@atheme-project.org>
parents:
diff changeset
35
740c6f845554 revise tuple formatting engine logic
William Pitcock <nenolod@atheme-project.org>
parents:
diff changeset
36 return test_run(argc, argv);
740c6f845554 revise tuple formatting engine logic
William Pitcock <nenolod@atheme-project.org>
parents:
diff changeset
37 }
740c6f845554 revise tuple formatting engine logic
William Pitcock <nenolod@atheme-project.org>
parents:
diff changeset
38