Statistics
| Revision:

root / trunk / tests / common.h @ 1847

History | View | Annotate | Download (1.2 KB)

1
/* 
2
    Copyright (C) 2005-2011  Erik van Pienbroek
3

                
4
    This program is free software; you can redistribute it and/or modify
5
    it under the terms of the GNU General Public License as published by
6
    the Free Software Foundation; either version 2 of the License, or
7
    (at your option) any later version.
8

                
9
    This program is distributed in the hope that it will be useful,
10
    but WITHOUT ANY WARRANTY; without even the implied warranty of
11
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
    GNU General Public License for more details.
13

                
14
    You should have received a copy of the GNU General Public License
15
    along with this program; if not, write to the Free Software
16
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17
*/
18

                
19
#ifndef _TESTS_COMMON_H_
20
#define _TESTS_COMMON_H_
21

                
22
#include "configuration.h"
23

                
24
void initialize_tests(void);
25
void cleanup_tests(void);
26
char *get_location_of_download_queue(void);
27

                
28
#if GLIB_CHECK_VERSION(2,29,4)
29
#define FAIL_TEST(format, args...)      \
30
    g_test_message(format, ## args);    \
31
    g_test_fail();
32
#else
33
#define FAIL_TEST(format, args...)      \
34
    g_error(format, ## args);
35
#endif
36

                
37
extern Configuration *config;
38

                
39
#endif /* _TESTS_COMMON_H_ */