c/src/Makefile: Remove `-Wall`, `-Werror` and `-Wextra` from `LDFLAGS`
[sunny256-utils.git] / Lib / std / c / src / selftest.c
blob2c66b11ae9d5b8b5050fda4c98fca98886463f18
1 /*
2 * selftest.c
3 * File ID: STDuuidDTS
5 * (C)opyleft STDyearDTS- Øyvind A. Holm <sunny@sunbase.org>
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the Free
9 * Software Foundation; either version 2 of the License, or (at your option)
10 * any later version.
12 * This program is distributed in the hope that it will be useful, but WITHOUT
13 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15 * more details.
17 * You should have received a copy of the GNU General Public License along with
18 * this program. If not, see <http://www.gnu.org/licenses/>.
21 #include "STDexecDTS.h"
24 * selftest() - Run internal testing to check that it works on the current
25 * system. Executed if --selftest is used.
28 int selftest(void)
30 errno = EACCES;
31 puts("# myerror(\"errno is EACCES\")");
32 myerror("errno is EACCES");
33 errno = 0;
35 return EXIT_SUCCESS;
38 /* vim: set ts=8 sw=8 sts=8 noet fo+=w tw=79 fenc=UTF-8 : */