• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright (c) Linux Test Project, 2014
3  */
4 
5 #ifndef TST_RES_FLAGS_H
6 #define TST_RES_FLAGS_H
7 
8 /* Use low 6 bits to encode test type */
9 #define TTYPE_MASK	0x3f
10 #define TPASS	0	/* Test passed flag */
11 #define TFAIL	1	/* Test failed flag */
12 #define TBROK	2	/* Test broken flag */
13 #define TWARN	4	/* Test warning flag */
14 #define TINFO	16	/* Test information flag */
15 #define TCONF	32	/* Test not appropriate for configuration flag */
16 #define TTYPE_RESULT(ttype)	((ttype) & TTYPE_MASK)
17 
18 #define TERRNO	0x100	/* Append errno information to output */
19 #define TTERRNO	0x200	/* Append TEST_ERRNO information to output */
20 #define TRERRNO	0x400	/* Capture errno information from TEST_RETURN to
21 			   output; useful for pthread-like APIs :). */
22 
23 #endif /* TST_RES_FLAGS_H */
24