summaryrefslogtreecommitdiff
path: root/gnu/usr.sbin/sendmail/include/sm/test.h
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2001-09-11 18:55:53 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2001-09-11 18:55:53 +0000
commit4643c616c81fb1198b29c3eaff4d697392c8dc4b (patch)
tree4afa26a5f1a2ef0e47061eb08b6d339bc7e8dad1 /gnu/usr.sbin/sendmail/include/sm/test.h
parent8afe339a41c898cc4a2d42d03d115b16f2053bad (diff)
sendmail 8.12.0 with $Id tags converted to $Sendmail
Diffstat (limited to 'gnu/usr.sbin/sendmail/include/sm/test.h')
-rw-r--r--gnu/usr.sbin/sendmail/include/sm/test.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/gnu/usr.sbin/sendmail/include/sm/test.h b/gnu/usr.sbin/sendmail/include/sm/test.h
new file mode 100644
index 00000000000..1ae9e14ee43
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/include/sm/test.h
@@ -0,0 +1,46 @@
+/*
+ * Copyright (c) 2000-2001 Sendmail, Inc. and its suppliers.
+ * All rights reserved.
+ *
+ * By using this file, you agree to the terms and conditions set
+ * forth in the LICENSE file which can be found at the top level of
+ * the sendmail distribution.
+ *
+ * $Sendmail: test.h,v 1.6 2001/04/03 01:53:01 gshapiro Exp $
+ */
+
+/*
+** Abstractions for writing a libsm test program.
+*/
+
+#ifndef SM_TEST_H
+# define SM_TEST_H
+
+# include <sm/gen.h>
+
+# if defined(__STDC__) || defined(__cplusplus)
+# define SM_TEST(cond) sm_test(cond, #cond, __FILE__, __LINE__)
+# else /* defined(__STDC__) || defined(__cplusplus) */
+# define SM_TEST(cond) sm_test(cond, "cond", __FILE__, __LINE__)
+# endif /* defined(__STDC__) || defined(__cplusplus) */
+
+extern int SmTestIndex;
+extern int SmTestNumErrors;
+
+extern void
+sm_test_begin __P((
+ int _argc,
+ char **_argv,
+ char *_testname));
+
+extern bool
+sm_test __P((
+ bool _success,
+ char *_expr,
+ char *_filename,
+ int _lineno));
+
+extern int
+sm_test_end __P((void));
+
+#endif /* ! SM_TEST_H */