From a4f10b37035e781770724661a37a45a83b65c25f Mon Sep 17 00:00:00 2001 From: espie <> Date: Fri, 30 Apr 2004 17:15:12 +0000 Subject: Add tests for strerror. --- src/regress/lib/libc/strerror/strerror_test.c | 28 +++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/regress/lib/libc/strerror/strerror_test.c (limited to 'src/regress/lib/libc/strerror/strerror_test.c') diff --git a/src/regress/lib/libc/strerror/strerror_test.c b/src/regress/lib/libc/strerror/strerror_test.c new file mode 100644 index 0000000000..5b74df3a6a --- /dev/null +++ b/src/regress/lib/libc/strerror/strerror_test.c @@ -0,0 +1,28 @@ +/* $OpenBSD: strerror_test.c,v 1.1 2004/04/30 17:15:12 espie Exp $ */ +/* + * Copyright (c) 2004 Marc Espie + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ +#include +#include +#include +int main() +{ + printf("%s\n", strerror(21345)); + printf("%s\n", strerror(-21345)); + printf("%s\n", strerror(0)); + printf("%s\n", strerror(INT_MAX)); + printf("%s\n", strerror(INT_MIN)); + return 0; +} -- cgit v1.2.3-55-g6feb