1N/A/*
1N/A * Copyright (c) 2000-2001 Sendmail, Inc. and its suppliers.
1N/A * All rights reserved.
1N/A *
1N/A * By using this file, you agree to the terms and conditions set
1N/A * forth in the LICENSE file which can be found at the top level of
1N/A * the sendmail distribution.
1N/A *
1N/A * $Id: test.h,v 1.6 2001/04/03 01:53:01 gshapiro Exp $
1N/A */
1N/A
1N/A#pragma ident "%Z%%M% %I% %E% SMI"
1N/A
1N/A/*
1N/A** Abstractions for writing a libsm test program.
1N/A*/
1N/A
1N/A#ifndef SM_TEST_H
1N/A# define SM_TEST_H
1N/A
1N/A# include <sm/gen.h>
1N/A
1N/A# if defined(__STDC__) || defined(__cplusplus)
1N/A# define SM_TEST(cond) sm_test(cond, #cond, __FILE__, __LINE__)
1N/A# else /* defined(__STDC__) || defined(__cplusplus) */
1N/A# define SM_TEST(cond) sm_test(cond, "cond", __FILE__, __LINE__)
1N/A# endif /* defined(__STDC__) || defined(__cplusplus) */
1N/A
1N/Aextern int SmTestIndex;
1N/Aextern int SmTestNumErrors;
1N/A
1N/Aextern void
1N/Asm_test_begin __P((
1N/A int _argc,
1N/A char **_argv,
1N/A char *_testname));
1N/A
1N/Aextern bool
1N/Asm_test __P((
1N/A bool _success,
1N/A char *_expr,
1N/A char *_filename,
1N/A int _lineno));
1N/A
1N/Aextern int
1N/Asm_test_end __P((void));
1N/A
1N/A#endif /* ! SM_TEST_H */