diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-06-11 17:34:39 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-06-11 17:34:39 +0300 |
commit | 3741b075052c801fca2b65589a5fc0bb263015f5 (patch) | |
tree | 7b1d524b80c120a137ca15191c34e0726976d58d /test | |
parent | a6179f50085b271826fc383efac4d1ef8ef08052 (diff) | |
download | deheader-3741b075052c801fca2b65589a5fc0bb263015f5.tar.gz deheader-3741b075052c801fca2b65589a5fc0bb263015f5.tar.bz2 deheader-3741b075052c801fca2b65589a5fc0bb263015f5.tar.xz deheader-3741b075052c801fca2b65589a5fc0bb263015f5.zip |
Remove existing tests.
Partially they not works and cant be used in ci.
Diffstat (limited to 'test')
61 files changed, 0 insertions, 984 deletions
diff --git a/test/Makefile b/test/Makefile deleted file mode 100644 index 789216d..0000000 --- a/test/Makefile +++ /dev/null @@ -1,23 +0,0 @@ -PATH := ..:.:${PATH} - -SOURCES = $(shell ls *.c) - -regress: - @echo "Testing deheader: no output is good news." - @setpython python2 - @deheader -v -v . >/tmp/regress - @diff -u regress.chk /tmp/regress - @setpython python3 - @deheader -v -v . >/tmp/regress - @diff -u regress.chk /tmp/regress - @setpython python - @rm /tmp/regress -makeregress: - @deheader -v -v . >regress.chk - -# Verify that the test sources build correctly when unaltered -verify: - for x in $(SOURCES:.c=.o); do make CFLAGS='-Werror -Wfatal-errors' $$x; done - -clean: - rm -f *.o *~ diff --git a/test/README b/test/README deleted file mode 100644 index 5eb212e..0000000 --- a/test/README +++ /dev/null @@ -1,2 +0,0 @@ -This directory contains C sourcfiles intended to test deheader, and -a check against which to compare the output. diff --git a/test/a64l.c b/test/a64l.c deleted file mode 100644 index d580a69..0000000 --- a/test/a64l.c +++ /dev/null @@ -1,14 +0,0 @@ -/* - * Items: a64l(, l64a( - * Standardized-By: SuS - * Not-Detected-by: gcc-4.4.3 + Linux - */ - -#include <stdlib.h> - -main(int arg, char **argv) -{ - (void) a64l("2317"); - (void) l64a(2317); - -} diff --git a/test/abort.c b/test/abort.c deleted file mode 100644 index 655a3ab..0000000 --- a/test/abort.c +++ /dev/null @@ -1,12 +0,0 @@ -/* - * Items: abort( - * Standardized-By: SuS - * Not-Detected-by: gcc-4.4.3 + Linux - */ - -#include <stdlib.h> - -main(int arg, char **argv) -{ - abort(); -} diff --git a/test/abs.c b/test/abs.c deleted file mode 100644 index 15214af..0000000 --- a/test/abs.c +++ /dev/null @@ -1,12 +0,0 @@ -/* - * Items: abs( - * Standardized-By: SuS - * Not-Detected-by: gcc-4.4.3 + Linux - */ - -#include <stdlib.h> - -main(int arg, char **argv) -{ - abs(-23); -} diff --git a/test/access.c b/test/access.c deleted file mode 100644 index 4f18431..0000000 --- a/test/access.c +++ /dev/null @@ -1,17 +0,0 @@ -/* - * Items: access( - * Standardized-By: SuS - * Not-Detected-by: gcc-4.4.3 + Linux - */ - -#include <unistd.h> - -main(int arg, char **argv) -{ - /* - * Note: use of a symbolic constant like F_OK *will* - * cause the compile to fail and the requrement - * for <unistd.h> to be tetected. - */ - (void)access("/dev/null", 0); -} diff --git a/test/acos.c b/test/acos.c deleted file mode 100644 index e9766c3..0000000 --- a/test/acos.c +++ /dev/null @@ -1,12 +0,0 @@ -/* - * Items: acos( - * Standardized-By: SuS - * Not-Detected-by: gcc-4.4.3 + Linux - */ - -#include <math.h> - -main(int arg, char **argv) -{ - acos(-23.0); -} diff --git a/test/acosh.c b/test/acosh.c deleted file mode 100644 index d524708..0000000 --- a/test/acosh.c +++ /dev/null @@ -1,12 +0,0 @@ -/* - * Items: acosh( - * Standardized-By: SuS - * Not-Detected-by: gcc-4.4.3 + Linux - */ - -#include <math.h> - -main(int arg, char **argv) -{ - acosh(-23.0); -} diff --git a/test/advance.c b/test/advance.c deleted file mode 100644 index d0af0b8..0000000 --- a/test/advance.c +++ /dev/null @@ -1,19 +0,0 @@ -/* - * Items: advance( - * Standardized-By: SuS - * Not-Detected-by: gcc-4.4.3 + Linux - */ - -#define INIT -#define GETC() getc() -#define PEEKC() peek() -#define UNGETC(c) ungetc(c) -#define RETURN(ptr) return ptr -#define ERROR(val) return val - -#include <regexp.h> - -main(int arg, char **argv) -{ - advance("foobar", 0); -} diff --git a/test/alarm.c b/test/alarm.c deleted file mode 100644 index d4fbb89..0000000 --- a/test/alarm.c +++ /dev/null @@ -1,12 +0,0 @@ -/* - * Items: alarm( - * Standardized-By: SuS - * Not-Detected-by: gcc-4.4.3 + Linux - */ - -#include <unistd.h> - -main(int arg, char **argv) -{ - alarm(23); -} diff --git a/test/asin.c b/test/asin.c deleted file mode 100644 index 26a8746..0000000 --- a/test/asin.c +++ /dev/null @@ -1,12 +0,0 @@ -/* - * Items: asin( - * Standardized-By: SuS - * Not-Detected-by: gcc-4.4.3 + Linux - */ - -#include <math.h> - -main(int arg, char **argv) -{ - asin(-23.0); -} diff --git a/test/asinh.c b/test/asinh.c deleted file mode 100644 index 5d6fbae..0000000 --- a/test/asinh.c +++ /dev/null @@ -1,12 +0,0 @@ -/* - * Items: asinh( - * Standardized-By: SuS - * Not-Detected-by: gcc-4.4.3 + Linux - */ - -#include <math.h> - -main(int arg, char **argv) -{ - asinh(-23.0); -} diff --git a/test/atan.c b/test/atan.c deleted file mode 100644 index d26c2ed..0000000 --- a/test/atan.c +++ /dev/null @@ -1,12 +0,0 @@ -/* - * Items: atan( - * Standardized-By: SuS - * Not-Detected-by: gcc-4.4.3 + Linux - */ - -#include <math.h> - -main(int arg, char **argv) -{ - atan(-23.0); -} diff --git a/test/atan2.c b/test/atan2.c deleted file mode 100644 index ac6f861..0000000 --- a/test/atan2.c +++ /dev/null @@ -1,12 +0,0 @@ -/* - * Items: atan2( - * Standardized-By: SuS - * Not-Detected-by: gcc-4.4.3 + Linux - */ - -#include <math.h> - -main(int arg, char **argv) -{ - atan2(-23.0, 17.0); -} diff --git a/test/atanh.c b/test/atanh.c deleted file mode 100644 index e5b6fbb..0000000 --- a/test/atanh.c +++ /dev/null @@ -1,12 +0,0 @@ -/* - * Items: atanh( - * Standardized-By: SuS - * Not-Detected-by: gcc-4.4.3 + Linux - */ - -#include <math.h> - -main(int arg, char **argv) -{ - atanh(-23.0); -} diff --git a/test/atexit.c b/test/atexit.c deleted file mode 100644 index 606fa0b..0000000 --- a/test/atexit.c +++ /dev/null @@ -1,12 +0,0 @@ -/* - * Items: atexit( - * Standardized-By: SuS - * Detected-by: gcc-4.4.3 + Linux - */ - -#include <stdlib.h> - -main(int arg, char **argv) -{ - atexit(NULL); -} diff --git a/test/atof.c b/test/atof.c deleted file mode 100644 index aedd5d4..0000000 --- a/test/atof.c +++ /dev/null @@ -1,13 +0,0 @@ -/* - * Items: atofl(, l64a( - * Standardized-By: SuS - * Not-Detected-by: gcc-4.4.3 + Linux - */ - -#include <stdlib.h> - -main(int arg, char **argv) -{ - (void) atof("2317"); - -} diff --git a/test/atoi.c b/test/atoi.c deleted file mode 100644 index 747af4e..0000000 --- a/test/atoi.c +++ /dev/null @@ -1,13 +0,0 @@ -/* - * Items: atoil(, l64a( - * Standardized-By: SuS - * Not-Detected-by: gcc-4.4.3 + Linux - */ - -#include <stdlib.h> - -main(int arg, char **argv) -{ - (void) atoi("2317"); - -} diff --git a/test/atol.c b/test/atol.c deleted file mode 100644 index abe62b3..0000000 --- a/test/atol.c +++ /dev/null @@ -1,13 +0,0 @@ -/* - * Items: atoll(, l64a( - * Standardized-By: SuS - * Not-Detected-by: gcc-4.4.3 + Linux - */ - -#include <stdlib.h> - -main(int arg, char **argv) -{ - (void) atol("2317"); - -} diff --git a/test/basename.c b/test/basename.c deleted file mode 100644 index d9d2326..0000000 --- a/test/basename.c +++ /dev/null @@ -1,12 +0,0 @@ -/* - * Items: basename( - * Standardized-By: SuS - * Not-Detected-by: gcc-4.4.3 + Linux - */ - -#include <libgen.h> - -main(int arg, char **argv) -{ - (void)basename("/dev/null"); -} diff --git a/test/bcmp.c b/test/bcmp.c deleted file mode 100644 index 35a1be7..0000000 --- a/test/bcmp.c +++ /dev/null @@ -1,12 +0,0 @@ -/* - * Items: bcmp( - * Standardized-By: SuS - * Not-Detected-by: gcc-4.4.3 + Linux - */ - -#include <strings.h> - -main(int arg, char **argv) -{ - (void) bcmp("aaa", "bbb", 3); -} diff --git a/test/bcopy.c b/test/bcopy.c deleted file mode 100644 index 9475151..0000000 --- a/test/bcopy.c +++ /dev/null @@ -1,12 +0,0 @@ -/* - * Items: bcopy( - * Standardized-By: SuS - * Detected-by: gcc-4.4.3 + Linux - */ - -#include <strings.h> - -main(int arg, char **argv) -{ - (void) bcopy(0, 0, 0); -} diff --git a/test/brk.c b/test/brk.c deleted file mode 100644 index 12aff23..0000000 --- a/test/brk.c +++ /dev/null @@ -1,12 +0,0 @@ -/* - * Items: brk( - * Standardized-By: SuS - * Detected-by: gcc-4.4.3 + Linux - */ - -#include <unistd.h> - -main(int arg, char **argv) -{ - brk(NULL); -} diff --git a/test/bsd_signal.c b/test/bsd_signal.c deleted file mode 100644 index cd90979..0000000 --- a/test/bsd_signal.c +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Items: bsd_signal( - * Standardized-By: SuS - * Not-Detected-by: gcc-4.4.3 + Linux - */ - -#include <signal.h> - -void handler(int sig) -{ -} - -main(int arg, char **argv) -{ - (void) bsd_signal(0, handler); -} diff --git a/test/bsort.c b/test/bsort.c deleted file mode 100644 index 3d4561e..0000000 --- a/test/bsort.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Items: bsort( - * Standardized-By: SuS - * Not-Detected-by: gcc-4.4.3 + Linux - */ - -/* example taken pretty much directly from SuS */ - -#ifndef __DEHEADER__ -#include <stdio.h> -#include <string.h> -#endif -#include <stdlib.h> - -#define TABSIZE 1000 - -struct node { /* these are stored in the table */ - char *string; - int length; -}; -struct node table[TABSIZE]; /* table to be searched */ - -int -node_compare(const void *node1, const void *node2) -{ - return strcoll(((const struct node *)node1)->string, - ((const struct node *)node2)->string); -} - -main(int argc, char **argv) -{ - struct node *node_ptr, node; - char str_space[20]; /* space to read string into */ - - node.string = str_space; - while (scanf("%s", node.string) != EOF) { - node_ptr = (struct node *)bsearch((void *)(&node), - (void *)table, TABSIZE, - sizeof(struct node), node_compare); - if (node_ptr != NULL) { - (void)printf("string = %20s, length = %d\n", - node_ptr->string, node_ptr->length); - } else { - (void)printf("not found: %s\n", node.string); - } - } -} - - diff --git a/test/btowc.c b/test/btowc.c deleted file mode 100644 index c37aab9..0000000 --- a/test/btowc.c +++ /dev/null @@ -1,13 +0,0 @@ -/* - * Items: btowc( - * Standardized-By: SuS - * Not-Detected-by: gcc-4.4.3 + Linux - */ - -#include <stdio.h> -#include <wchar.h> - -main(int arg, char **argv) -{ - (void)btowc('a'); -} diff --git a/test/bzero.c b/test/bzero.c deleted file mode 100644 index 1fafa46..0000000 --- a/test/bzero.c +++ /dev/null @@ -1,12 +0,0 @@ -/* - * Items: bzero( - * Standardized-By: SuS - * Not-Detected-by: gcc-4.4.3 + Linux - */ - -#include <strings.h> - -main(int arg, char **argv) -{ - (void) bzero(0, 0); -} diff --git a/test/calloc.c b/test/calloc.c deleted file mode 100644 index 27105a6..0000000 --- a/test/calloc.c +++ /dev/null @@ -1,12 +0,0 @@ -/* - * Items: calloc( - * Standardized-By: SuS - * Not-Detected-by: gcc-4.4.3 + Linux - */ - -#include <stdlib.h> - -main(int arg, char **argv) -{ - (void) calloc(0, 0); -} diff --git a/test/catclose.c b/test/catclose.c deleted file mode 100644 index ddfc924..0000000 --- a/test/catclose.c +++ /dev/null @@ -1,12 +0,0 @@ -/* - * Items: catclose( - * Standardized-By: SuS - * Not-Detected-by: gcc-4.4.3 + Linux - */ - -#include <nl_types.h> - -main(int arg, char **argv) -{ - (void) catclose(0); -} diff --git a/test/catgets.c b/test/catgets.c deleted file mode 100644 index 23530a7..0000000 --- a/test/catgets.c +++ /dev/null @@ -1,12 +0,0 @@ -/* - * Items: catgets( - * Standardized-By: SuS - * Not-Detected-by: gcc-4.4.3 + Linux - */ - -#include <nl_types.h> - -main(int arg, char **argv) -{ - (void) catgets(0, 0, 0, "foobar"); -} diff --git a/test/catopen.c b/test/catopen.c deleted file mode 100644 index 6393025..0000000 --- a/test/catopen.c +++ /dev/null @@ -1,12 +0,0 @@ -/* - * Items: catopen( - * Standardized-By: SuS - * Not-Detected-by: gcc-4.4.3 + Linux - */ - -#include <nl_types.h> - -main(int arg, char **argv) -{ - (void) catopen("foobar", 0); -} diff --git a/test/cbrt.c b/test/cbrt.c deleted file mode 100644 index 304d0e0..0000000 --- a/test/cbrt.c +++ /dev/null @@ -1,12 +0,0 @@ -/* - * Items: cbrt( - * Standardized-By: SuS - * Not-Detected-by: gcc-4.4.3 + Linux - */ - -#include <math.h> - -main(int arg, char **argv) -{ - cbrt(23.0); -} diff --git a/test/ceil.c b/test/ceil.c deleted file mode 100644 index b34844f..0000000 --- a/test/ceil.c +++ /dev/null @@ -1,12 +0,0 @@ -/* - * Items: ceil( - * Standardized-By: SuS - * Not-Detected-by: gcc-4.4.3 + Linux - */ - -#include <math.h> - -main(int arg, char **argv) -{ - ceil(23.0); -} diff --git a/test/cfgetispeed.c b/test/cfgetispeed.c deleted file mode 100644 index 9ca40cf..0000000 --- a/test/cfgetispeed.c +++ /dev/null @@ -1,13 +0,0 @@ -/* - * Items: cfgetispeed( - * Standardized-By: SuS - * Not-Detected-by: gcc-4.4.3 + Linux - */ - -#include <termios.h> - -main(int arg, char **argv) -{ - struct termios t; - cfgetispeed(&t); -} diff --git a/test/cfgetospeed.c b/test/cfgetospeed.c deleted file mode 100644 index c448ff0..0000000 --- a/test/cfgetospeed.c +++ /dev/null @@ -1,13 +0,0 @@ -/* - * Items: cfgetospeed( - * Standardized-By: SuS - * Not-Detected-by: gcc-4.4.3 + Linux - */ - -#include <termios.h> - -main(int arg, char **argv) -{ - struct termios t; - cfgetospeed(&t); -} diff --git a/test/cfsetispeed.c b/test/cfsetispeed.c deleted file mode 100644 index 2cdd37f..0000000 --- a/test/cfsetispeed.c +++ /dev/null @@ -1,13 +0,0 @@ -/* - * Items: cfsetispeed( - * Standardized-By: SuS - * Not-Detected-by: gcc-4.4.3 + Linux - */ - -#include <termios.h> - -main(int arg, char **argv) -{ - struct termios t; - cfsetispeed(&t, 0); -} diff --git a/test/cfsetospeed.c b/test/cfsetospeed.c deleted file mode 100644 index 92392c2..0000000 --- a/test/cfsetospeed.c +++ /dev/null @@ -1,13 +0,0 @@ -/* - * Items: cfsetospeed( - * Standardized-By: SuS - * Not-Detected-by: gcc-4.4.3 + Linux - */ - -#include <termios.h> - -main(int arg, char **argv) -{ - struct termios t; - cfsetospeed(&t, 0); -} diff --git a/test/chdir.c b/test/chdir.c deleted file mode 100644 index 42dbf54..0000000 --- a/test/chdir.c +++ /dev/null @@ -1,12 +0,0 @@ -/* - * Items: chdir( - * Standardized-By: SuS - * Not-Detected-by: gcc-4.4.3 + Linux - */ - -#include <unistd.h> - -main(int arg, char **argv) -{ - (void)chdir("/"); -} diff --git a/test/chmod.c b/test/chmod.c deleted file mode 100644 index 51e866f..0000000 --- a/test/chmod.c +++ /dev/null @@ -1,13 +0,0 @@ -/* - * Items: chmod( - * Standardized-By: SuS - * Not-Detected-by: gcc-4.4.3 + Linux - */ - -#include <sys/types.h> -#include <sys/stat.h> - -main(int arg, char **argv) -{ - (void)chmod("/", 0); -} diff --git a/test/chown.c b/test/chown.c deleted file mode 100644 index 1b46960..0000000 --- a/test/chown.c +++ /dev/null @@ -1,13 +0,0 @@ -/* - * Items: chown( - * Standardized-By: SuS - * Not-Detected-by: gcc-4.4.3 + Linux - */ - -#include <sys/types.h> -#include <unistd.h> - -main(int arg, char **argv) -{ - (void)chown("/", 0, 0); -} diff --git a/test/chroot.c b/test/chroot.c deleted file mode 100644 index 0927112..0000000 --- a/test/chroot.c +++ /dev/null @@ -1,12 +0,0 @@ -/* - * Items: chroot( - * Standardized-By: SuS - * Not-Detected-by: gcc-4.4.3 + Linux - */ - -#include <unistd.h> - -main(int arg, char **argv) -{ - (void)chroot("/"); -} diff --git a/test/clearerr.c b/test/clearerr.c deleted file mode 100644 index 0835b2e..0000000 --- a/test/clearerr.c +++ /dev/null @@ -1,12 +0,0 @@ -/* - * Items: clearerr( - * Standardized-By: SuS - * Detected-by: gcc-4.4.3 + Linux - */ - -#include <stdio.h> - -main(int arg, char **argv) -{ - (void)clearerr(stdin); -} diff --git a/test/clock.c b/test/clock.c deleted file mode 100644 index b32f8a7..0000000 --- a/test/clock.c +++ /dev/null @@ -1,12 +0,0 @@ -/* - * Items: clock( - * Standardized-By: SuS - * Detected-by: gcc-4.4.3 + Linux - */ - -#include <time.h> - -main(int arg, char **argv) -{ - (void)clock(); -} diff --git a/test/clock_getres.c b/test/clock_getres.c deleted file mode 100644 index e18fc4b..0000000 --- a/test/clock_getres.c +++ /dev/null @@ -1,13 +0,0 @@ -/* - * Items: clock_getres( - * Standardized-By: SuS - * Detected-by: gcc-4.4.3 + Linux - */ - -#include <time.h> - -main(int arg, char **argv) -{ - struct timespec ts; - (void)clock_getres(0, &ts); -} diff --git a/test/clock_gettime.c b/test/clock_gettime.c deleted file mode 100644 index 8de7e81..0000000 --- a/test/clock_gettime.c +++ /dev/null @@ -1,13 +0,0 @@ -/* - * Items: clock_gettime( - * Standardized-By: SuS - * Detected-by: gcc-4.4.3 + Linux - */ - -#include <time.h> - -main(int arg, char **argv) -{ - struct timespec ts; - (void)clock_gettime(0, &ts); -} diff --git a/test/clock_settime.c b/test/clock_settime.c deleted file mode 100644 index af4d153..0000000 --- a/test/clock_settime.c +++ /dev/null @@ -1,13 +0,0 @@ -/* - * Items: clock_settime( - * Standardized-By: SuS - * Detected-by: gcc-4.4.3 + Linux - */ - -#include <time.h> - -main(int arg, char **argv) -{ - struct timespec ts; - (void)clock_settime(0, &ts); -} diff --git a/test/close.c b/test/close.c deleted file mode 100644 index 207b8ba..0000000 --- a/test/close.c +++ /dev/null @@ -1,12 +0,0 @@ -/* - * Items: close( - * Standardized-By: SuS - * Not-Detected-by: gcc-4.4.3 + Linux - */ - -#include <unistd.h> - -main(int arg, char **argv) -{ - (void)close(0); -} diff --git a/test/closedir.c b/test/closedir.c deleted file mode 100644 index f9b6a66..0000000 --- a/test/closedir.c +++ /dev/null @@ -1,13 +0,0 @@ -/* - * Items: closedir( - * Standardized-By: SuS - * Detected-by: gcc-4.4.3 + Linux - */ - -#include <sys/types.h> -#include <dirent.h> - -main(int arg, char **argv) -{ - (void)closedir(0); -} diff --git a/test/crypt.c b/test/crypt.c deleted file mode 100644 index ce86f96..0000000 --- a/test/crypt.c +++ /dev/null @@ -1,12 +0,0 @@ -/* - * Items: crypt( - * Standardized-By: SuS - * Not-Detected-by: gcc-4.4.3 + Linux - */ - -#include <unistd.h> - -main(int arg, char **argv) -{ - (void)crypt("foo", "salt"); -} diff --git a/test/ctime.c b/test/ctime.c deleted file mode 100644 index 9386cd6..0000000 --- a/test/ctime.c +++ /dev/null @@ -1,12 +0,0 @@ -/* - * Items: ctime( - * Standardized-By: SuS - * Detected-by: gcc-4.4.3 + Linux - */ - -#include <time.h> - -main(int arg, char **argv) -{ - (void)ctime(NULL); -} diff --git a/test/duplicate.c b/test/duplicate.c deleted file mode 100644 index 5074c78..0000000 --- a/test/duplicate.c +++ /dev/null @@ -1,8 +0,0 @@ -/* this file tests detection of duplicate heafers */ - -#include <stdio.h> -#include <stdio.h> - -main(int arg, char **argv) -{ -} diff --git a/test/fchmod.c b/test/fchmod.c deleted file mode 100644 index e998b70..0000000 --- a/test/fchmod.c +++ /dev/null @@ -1,12 +0,0 @@ -/* - * Items: fchmod( - * Standardized-By: SuS - * Not-Detected-by: gcc-4.4.3 + Linux - */ - -#include <sys/stat.h> - -main(int arg, char **argv) -{ - (void)fchmod(0, 0); -} diff --git a/test/fchown.c b/test/fchown.c deleted file mode 100644 index a05db12..0000000 --- a/test/fchown.c +++ /dev/null @@ -1,12 +0,0 @@ -/* - * Items: fchown( - * Standardized-By: SuS - * Not-Detected-by: gcc-4.4.3 + Linux - */ - -#include <unistd.h> - -main(int arg, char **argv) -{ - (void)fchown(0, 0, 0); -} diff --git a/test/fclose.c b/test/fclose.c deleted file mode 100644 index 5659fce..0000000 --- a/test/fclose.c +++ /dev/null @@ -1,12 +0,0 @@ -/* - * Items: fclose( - * Standardized-By: SuS - * Detected-by: gcc-4.4.3 + Linux - */ - -#include <stdio.h> - -main(int arg, char **argv) -{ - (void)fclose(stdin); -} diff --git a/test/fstat.c b/test/fstat.c deleted file mode 100644 index 106ce08..0000000 --- a/test/fstat.c +++ /dev/null @@ -1,13 +0,0 @@ -/* - * Items: fstat( - * Standardized-By: SuS - * Not-Detected-by: gcc-4.4.3 + Linux - */ - -#include <sys/stat.h> -#include <sys/types.h> - -main(int arg, char **argv) -{ - fstat(0, 0); -} diff --git a/test/noheaders.c b/test/noheaders.c deleted file mode 100644 index 7655e0c..0000000 --- a/test/noheaders.c +++ /dev/null @@ -1,5 +0,0 @@ -/* this file has no headers and needs none */ - -main(int arg, char **argv) -{ -} diff --git a/test/regress.chk b/test/regress.chk deleted file mode 100644 index 299cc63..0000000 --- a/test/regress.chk +++ /dev/null @@ -1,195 +0,0 @@ -deheader: ./a64l.c includes <stdlib.h> -deheader: ./abort.c includes <stdlib.h> -deheader: ./abs.c includes <stdlib.h> -deheader: ./access.c includes <unistd.h> -deheader: ./acos.c includes <math.h> -deheader: ./acosh.c includes <math.h> -deheader: ./advance.c includes <regexp.h> -deheader: ./alarm.c includes <unistd.h> -deheader: ./asin.c includes <math.h> -deheader: ./asinh.c includes <math.h> -deheader: ./atan.c includes <math.h> -deheader: ./atan2.c includes <math.h> -deheader: ./atanh.c includes <math.h> -deheader: ./atexit.c includes <stdlib.h> -deheader: ./atof.c includes <stdlib.h> -deheader: ./atoi.c includes <stdlib.h> -deheader: ./atol.c includes <stdlib.h> -deheader: ./basename.c includes <libgen.h> -deheader: ./bcmp.c includes <strings.h> -deheader: ./bcopy.c includes <strings.h> -deheader: ./brk.c includes <unistd.h> -deheader: ./bsd_signal.c includes <signal.h> -deheader: ./bsort.c includes <stdio.h> -deheader: ignoring <stdio.h> (conditional inclusion) -deheader: ./bsort.c includes <string.h> -deheader: ignoring <string.h> (conditional inclusion) -deheader: ./bsort.c includes <stdlib.h> -deheader: ./btowc.c includes <stdio.h> -deheader: ./btowc.c includes <wchar.h> -deheader: ./bzero.c includes <strings.h> -deheader: ./calloc.c includes <stdlib.h> -deheader: ./catclose.c includes <nl_types.h> -deheader: ./catgets.c includes <nl_types.h> -deheader: ./catopen.c includes <nl_types.h> -deheader: ./cbrt.c includes <math.h> -deheader: ./ceil.c includes <math.h> -deheader: ./cfgetispeed.c includes <termios.h> -deheader: ./cfgetospeed.c includes <termios.h> -deheader: ./cfsetispeed.c includes <termios.h> -deheader: ./cfsetospeed.c includes <termios.h> -deheader: ./chdir.c includes <unistd.h> -deheader: ./chmod.c includes <sys/types.h> -deheader: ./chmod.c includes <sys/stat.h> -deheader: ./chown.c includes <sys/types.h> -deheader: ./chown.c includes <unistd.h> -deheader: ./chroot.c includes <unistd.h> -deheader: ./clearerr.c includes <stdio.h> -deheader: ./clock.c includes <time.h> -deheader: ./clock_getres.c includes <time.h> -deheader: ./clock_gettime.c includes <time.h> -deheader: ./clock_settime.c includes <time.h> -deheader: ./close.c includes <unistd.h> -deheader: ./closedir.c includes <sys/types.h> -deheader: ./closedir.c includes <dirent.h> -deheader: ./crypt.c includes <unistd.h> -deheader: ./ctime.c includes <time.h> -deheader: ./duplicate.c includes <stdio.h> -deheader: ./duplicate.c includes <stdio.h> -deheader: ./duplicate.c has more than one inclusion of <stdio.h> -deheader: ./fchmod.c includes <sys/stat.h> -deheader: ./fchown.c includes <unistd.h> -deheader: ./fclose.c includes <stdio.h> -deheader: ./fstat.c includes <sys/stat.h> -deheader: ./fstat.c includes <sys/types.h> -deheader: ./sbrk.c includes <unistd.h> -deheader: ./string.c includes <string.h> -deheader: ./umask.c includes <sys/stat.h> -deheader: ./umask.c includes <sys/types.h> -deheader: ./a64l.c succeeded. -deheader: in ./a64l.c, a64l() prevents uninclusion of <stdlib.h> -deheader: ./abort.c succeeded. -deheader: in ./abort.c, abort() prevents uninclusion of <stdlib.h> -deheader: ./abs.c succeeded. -deheader: in ./abs.c, abs() prevents uninclusion of <stdlib.h> -deheader: ./access.c succeeded. -deheader: in ./access.c, access() prevents uninclusion of <unistd.h> -deheader: ./acos.c succeeded. -deheader: in ./acos.c, acos() prevents uninclusion of <math.h> -deheader: ./acosh.c succeeded. -deheader: in ./acosh.c, acosh() prevents uninclusion of <math.h> -deheader: ./advance.c succeeded. -deheader: in ./advance.c, advance() prevents uninclusion of <regexp.h> -deheader: in ./advance.c, getc() portability requires <stdio.h>. -deheader: ./alarm.c succeeded. -deheader: in ./alarm.c, alarm() prevents uninclusion of <unistd.h> -deheader: ./asin.c succeeded. -deheader: in ./asin.c, asin() prevents uninclusion of <math.h> -deheader: ./asinh.c succeeded. -deheader: in ./asinh.c, asinh() prevents uninclusion of <math.h> -deheader: ./atan.c succeeded. -deheader: in ./atan.c, atan() prevents uninclusion of <math.h> -deheader: ./atan2.c succeeded. -deheader: in ./atan2.c, atan2() prevents uninclusion of <math.h> -deheader: ./atanh.c succeeded. -deheader: in ./atanh.c, atanh() prevents uninclusion of <math.h> -deheader: ./atexit.c succeeded. -deheader: in ./atexit.c, atexit() prevents uninclusion of <stdlib.h> -deheader: ./atof.c succeeded. -deheader: in ./atof.c, l64a() prevents uninclusion of <stdlib.h> -deheader: ./atoi.c succeeded. -deheader: in ./atoi.c, l64a() prevents uninclusion of <stdlib.h> -deheader: ./atol.c succeeded. -deheader: in ./atol.c, l64a() prevents uninclusion of <stdlib.h> -deheader: ./basename.c succeeded. -deheader: in ./basename.c, basename() prevents uninclusion of <libgen.h> -deheader: ./bcmp.c succeeded. -deheader: in ./bcmp.c, bcmp() prevents uninclusion of <strings.h> -deheader: ./bcopy.c succeeded. -deheader: in ./bcopy.c, bcopy() prevents uninclusion of <strings.h> -deheader: ./brk.c succeeded. -deheader: in ./brk.c, brk() prevents uninclusion of <unistd.h> -deheader: ./bsd_signal.c succeeded. -deheader: in ./bsd_signal.c, bsd_signal() prevents uninclusion of <signal.h> -deheader: ./bsort.c succeeded. -deheader: in ./bsort.c, bsort() prevents uninclusion of <stdlib.h> -deheader: in ./bsort.c, strcoll() portability requires <string.h>. -deheader: in ./bsort.c, scanf() portability requires <stdio.h>. -deheader: ./btowc.c succeeded. -deheader: in ./btowc.c, btowc() prevents uninclusion of <wchar.h> -deheader: in ./btowc.c, btowc() prevents uninclusion of <stdio.h> -deheader: ./bzero.c succeeded. -deheader: in ./bzero.c, bzero() prevents uninclusion of <strings.h> -deheader: ./calloc.c succeeded. -deheader: in ./calloc.c, calloc() prevents uninclusion of <stdlib.h> -deheader: ./catclose.c succeeded. -deheader: in ./catclose.c, catclose() prevents uninclusion of <nl_types.h> -deheader: ./catgets.c succeeded. -deheader: in ./catgets.c, catgets() prevents uninclusion of <nl_types.h> -deheader: ./catopen.c succeeded. -deheader: in ./catopen.c, catopen() prevents uninclusion of <nl_types.h> -deheader: ./cbrt.c succeeded. -deheader: in ./cbrt.c, cbrt() prevents uninclusion of <math.h> -deheader: ./ceil.c succeeded. -deheader: in ./ceil.c, ceil() prevents uninclusion of <math.h> -deheader: ./cfgetispeed.c succeeded. -deheader: in ./cfgetispeed.c, cfgetispeed() prevents uninclusion of <termios.h> -deheader: ./cfgetospeed.c succeeded. -deheader: in ./cfgetospeed.c, cfgetospeed() prevents uninclusion of <termios.h> -deheader: ./cfsetispeed.c succeeded. -deheader: in ./cfsetispeed.c, cfsetispeed() prevents uninclusion of <termios.h> -deheader: ./cfsetospeed.c succeeded. -deheader: in ./cfsetospeed.c, cfsetospeed() prevents uninclusion of <termios.h> -deheader: ./chdir.c succeeded. -deheader: in ./chdir.c, chdir() prevents uninclusion of <unistd.h> -deheader: ./chmod.c succeeded. -deheader: in ./chmod.c, chmod() prevents uninclusion of <sys/stat.h> -deheader: in ./chmod.c, chmod() prevents uninclusion of <sys/types.h> -deheader: ./chown.c succeeded. -deheader: in ./chown.c, chown() prevents uninclusion of <unistd.h> -deheader: in ./chown.c, chown() prevents uninclusion of <sys/types.h> -deheader: ./chroot.c succeeded. -deheader: in ./chroot.c, chroot() prevents uninclusion of <unistd.h> -deheader: ./clearerr.c succeeded. -deheader: in ./clearerr.c, clearerr() prevents uninclusion of <stdio.h> -deheader: ./clock.c succeeded. -deheader: in ./clock.c, clock() prevents uninclusion of <time.h> -deheader: ./clock_getres.c succeeded. -deheader: in ./clock_getres.c, clock_getres() prevents uninclusion of <time.h> -deheader: ./clock_gettime.c succeeded. -deheader: in ./clock_gettime.c, clock_gettime() prevents uninclusion of <time.h> -deheader: ./clock_settime.c succeeded. -deheader: in ./clock_settime.c, clock_settime() prevents uninclusion of <time.h> -deheader: ./close.c succeeded. -deheader: in ./close.c, close() prevents uninclusion of <unistd.h> -deheader: ./closedir.c succeeded. -deheader: in ./closedir.c, closedir() prevents uninclusion of <dirent.h> -deheader: in ./closedir.c, closedir() prevents uninclusion of <sys/types.h> -deheader: ./crypt.c succeeded. -deheader: in ./crypt.c, crypt() prevents uninclusion of <unistd.h> -deheader: ./ctime.c succeeded. -deheader: in ./ctime.c, ctime() prevents uninclusion of <time.h> -deheader: ./duplicate.c succeeded. -deheader: ./duplicate.c without <stdio.h> succeeded. -deheader: ./duplicate.c without <stdio.h> succeeded. -deheader: remove <stdio.h> from ./duplicate.c -deheader: remove <stdio.h> from ./duplicate.c -deheader: ./fchmod.c succeeded. -deheader: in ./fchmod.c, fchmod() prevents uninclusion of <sys/stat.h> -deheader: ./fchown.c succeeded. -deheader: in ./fchown.c, fchown() prevents uninclusion of <unistd.h> -deheader: ./fclose.c succeeded. -deheader: in ./fclose.c, fclose() prevents uninclusion of <stdio.h> -deheader: ./fstat.c succeeded. -deheader: in ./fstat.c, fstat() prevents uninclusion of <sys/types.h> -deheader: in ./fstat.c, fstat() prevents uninclusion of <sys/stat.h> -deheader: ./noheaders.c succeeded. -deheader: ./sbrk.c succeeded. -deheader: in ./sbrk.c, sbrk() prevents uninclusion of <unistd.h> -deheader: ./string.c succeeded. -deheader: ./string.c without <string.h> succeeded. -deheader: remove <string.h> from ./string.c -deheader: ./umask.c succeeded. -deheader: in ./umask.c, umask() prevents uninclusion of <sys/types.h> -deheader: in ./umask.c, umask() prevents uninclusion of <sys/stat.h> -deheader: saw 57 files, 63 includes, 3 removable diff --git a/test/sbrk.c b/test/sbrk.c deleted file mode 100644 index a45010a..0000000 --- a/test/sbrk.c +++ /dev/null @@ -1,12 +0,0 @@ -/* - * Items: sbrk( - * Standardized-By: SuS - * Not-Detected-by: gcc-4.4.3 + Linux - */ - -#include <unistd.h> - -main(int arg, char **argv) -{ - sbrk(23); -} diff --git a/test/setpython b/test/setpython deleted file mode 100755 index 8d8d2fc..0000000 --- a/test/setpython +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh -# -# setpython - create a local link from 'python' to a specified version -# -# This script is used to to redirect the 'python' in reposurgeon's -# shebang line to a specified version when running regression tests. - -if [ -z "$1" ] -then - ls -l python -elif [ $1 = "python" ] -then - rm -f ./python -elif [ $1 = python2 -o $1 = python3 ] -then - set -- `whereis $1` - shift - case $1 in - */bin/*) ln -sf $1 ./python; echo "python -> $1";; - *) echo "setpython: no python binary" >&2;; - esac -else - echo "setpython: unrecognized python version" >&2 -fi diff --git a/test/string.c b/test/string.c deleted file mode 100644 index 572cdf5..0000000 --- a/test/string.c +++ /dev/null @@ -1,7 +0,0 @@ -/* this file has string.h but doesn't need it */ - -#include <string.h> - -main(int arg, char **argv) -{ -} diff --git a/test/umask.c b/test/umask.c deleted file mode 100644 index b66861c..0000000 --- a/test/umask.c +++ /dev/null @@ -1,14 +0,0 @@ -/* - * Items: umask( - * Standardized-By: SuS - * Detected-by: gcc-4.4.3 + Linux - * Not-detected-by: BSD - */ - -#include <sys/stat.h> -#include <sys/types.h> - -main(int arg, char **argv) -{ - umask(777); -} |