From: | "Mike Frysinger (vapier)" <vapier@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-projects commit in portage-utils/tests: subdir.mk tests.h |
Date: | Sun, 29 Sep 2013 22:42:42 |
Message-Id: | 20130929224236.9C2CD2004F@flycatcher.gentoo.org |
1 | vapier 13/09/29 22:42:36 |
2 | |
3 | Modified: subdir.mk |
4 | Added: tests.h |
5 | Log: |
6 | move all headers includes and such to a single porting.h to avoid duplicating in tests/ #406393 |
7 | |
8 | Revision Changes Path |
9 | 1.4 portage-utils/tests/subdir.mk |
10 | |
11 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/tests/subdir.mk?rev=1.4&view=markup |
12 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/tests/subdir.mk?rev=1.4&content-type=text/plain |
13 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/tests/subdir.mk?r1=1.3&r2=1.4 |
14 | |
15 | Index: subdir.mk |
16 | =================================================================== |
17 | RCS file: /var/cvsroot/gentoo-projects/portage-utils/tests/subdir.mk,v |
18 | retrieving revision 1.3 |
19 | retrieving revision 1.4 |
20 | diff -u -r1.3 -r1.4 |
21 | --- subdir.mk 29 Apr 2013 04:38:16 -0000 1.3 |
22 | +++ subdir.mk 29 Sep 2013 22:42:36 -0000 1.4 |
23 | @@ -18,3 +18,6 @@ |
24 | ats = $(abs_top_srcdir) |
25 | |
26 | export b s atb ats |
27 | + |
28 | +CFLAGS += -Wall |
29 | +CPPFLAGS += -I$(abs_top_srcdir) |
30 | |
31 | |
32 | |
33 | 1.1 portage-utils/tests/tests.h |
34 | |
35 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/tests/tests.h?rev=1.1&view=markup |
36 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/tests/tests.h?rev=1.1&content-type=text/plain |
37 | |
38 | Index: tests.h |
39 | =================================================================== |
40 | /* |
41 | * Copyright 2005-2013 Gentoo Foundation |
42 | * Distributed under the terms of the GNU General Public License v2 |
43 | * $Header: /var/cvsroot/gentoo-projects/portage-utils/tests/tests.h,v 1.1 2013/09/29 22:42:36 vapier Exp $ |
44 | * |
45 | * Copyright 2005-2008 Ned Ludd - <solar@g.o> |
46 | * Copyright 2005-2013 Mike Frysinger - <vapier@g.o> |
47 | */ |
48 | |
49 | #ifndef _TESTS_H |
50 | #define _TESTS_H |
51 | |
52 | #include "porting.h" |
53 | |
54 | #define warnf(fmt, args...) fprintf(stderr, fmt "\n", ## args) |
55 | #define errf(fmt, args...) \ |
56 | do { \ |
57 | warnf(fmt, ## args); \ |
58 | exit(EXIT_FAILURE); \ |
59 | } while (0) |
60 | #define err(...) errf(__VA_ARGS__) |
61 | #define errp(...) errf(__VA_ARGS__) |
62 | #define _q_static static |
63 | |
64 | #endif |