1 /* vi: set sw=4 ts=4: */
3 * Test application for functions defined in ctype.h
4 * Copyright (C) 2000-2006 by Erik Andersen <andersen@uclibc.org>
6 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
15 #include "../testsuite.h"
19 static void aborthandler(int junk)
24 int main(int argc, char *argv[])
26 signal(SIGABRT, aborthandler);
28 init_testsuite("Testing functions defined in assert.h:\n\t");
32 TEST_NUMERIC(got_abort, 0);
36 printf("Don't worry -- This next test is supposed to print an assert message:\n");
37 fprintf(stderr, "\t");
39 TEST_NUMERIC(got_abort, 0);
44 TEST_NUMERIC(got_abort, 1);