8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / cmd / sendmail / include / sm / test.h
blob13ea9b92462ffb4293d0c89739b25c0d6df11c7c
1 /*
2 * Copyright (c) 2000-2001 Sendmail, Inc. and its suppliers.
3 * All rights reserved.
5 * By using this file, you agree to the terms and conditions set
6 * forth in the LICENSE file which can be found at the top level of
7 * the sendmail distribution.
9 * $Id: test.h,v 1.6 2001/04/03 01:53:01 gshapiro Exp $
12 #pragma ident "%Z%%M% %I% %E% SMI"
15 ** Abstractions for writing a libsm test program.
18 #ifndef SM_TEST_H
19 # define SM_TEST_H
21 # include <sm/gen.h>
23 # if defined(__STDC__) || defined(__cplusplus)
24 # define SM_TEST(cond) sm_test(cond, #cond, __FILE__, __LINE__)
25 # else /* defined(__STDC__) || defined(__cplusplus) */
26 # define SM_TEST(cond) sm_test(cond, "cond", __FILE__, __LINE__)
27 # endif /* defined(__STDC__) || defined(__cplusplus) */
29 extern int SmTestIndex;
30 extern int SmTestNumErrors;
32 extern void
33 sm_test_begin __P((
34 int _argc,
35 char **_argv,
36 char *_testname));
38 extern bool
39 sm_test __P((
40 bool _success,
41 char *_expr,
42 char *_filename,
43 int _lineno));
45 extern int
46 sm_test_end __P((void));
48 #endif /* ! SM_TEST_H */