1 /*
2  * This program is free software; you can redistribute it and/or modify it
3  * under the terms of version 2 of the GNU General Public License as
4  * published by the Free Software Foundation.
5  *
6  * This program is distributed in the hope that it would be useful, but
7  * WITHOUT ANY WARRANTY; without even the implied warranty of
8  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
9  */
10 
11 #ifndef TST_RES_FLAGS_H
12 #define TST_RES_FLAGS_H
13 
14 /* Use low 6 bits to encode test type */
15 #define TTYPE_MASK	0x3f
16 #define TPASS	0	/* Test passed flag */
17 #define TFAIL	1	/* Test failed flag */
18 #define TBROK	2	/* Test broken flag */
19 #define TWARN	4	/* Test warning flag */
20 #define TINFO	16	/* Test information flag */
21 #define TCONF	32	/* Test not appropriate for configuration flag */
22 #define TTYPE_RESULT(ttype)	((ttype) & TTYPE_MASK)
23 
24 #define TERRNO	0x100	/* Append errno information to output */
25 #define TTERRNO	0x200	/* Append TEST_ERRNO information to output */
26 #define TRERRNO	0x400	/* Capture errno information from TEST_RETURN to
27 			   output; useful for pthread-like APIs :). */
28 
29 #endif /* TST_RES_FLAGS_H */
30