1
0
mirror of https://https.git.savannah.gnu.org/git/gnulib.git synced 2026-09-01 02:34:55 +00:00

Tests for module '_Exit'.

This commit is contained in:
Bruno Haible
2010-07-12 18:55:19 +02:00
parent 5518d30198
commit 088612b229
4 changed files with 47 additions and 0 deletions
+5
View File
@@ -1,5 +1,10 @@
2010-07-12 Bruno Haible <bruno@clisp.org>
Tests for module '_Exit'.
* modules/_Exit-tests: New file.
* tests/test-_Exit.sh: New file.
* tests/test-_Exit.c: New file.
New module '_Exit'.
* lib/stdlib.in.h (__attribute__): New macro.
(_Exit): New declaration.
+11
View File
@@ -0,0 +1,11 @@
Files:
tests/test-_Exit.sh
tests/test-_Exit.c
Depends-on:
configure.ac:
Makefile.am:
TESTS += test-_Exit.sh
check_PROGRAMS += test-_Exit
+27
View File
@@ -0,0 +1,27 @@
/* Test of terminating the current process.
Copyright (C) 2010 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
/* Written by Bruno Haible <bruno@clisp.org>, 2010. */
#include <config.h>
#include <stdlib.h>
int
main ()
{
_Exit (81);
}
+4
View File
@@ -0,0 +1,4 @@
#!/bin/sh
./test-_Exit${EXEEXT}
test $? = 81