Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/regress/usr.bin Remove lint1 tests; they have been converted...
details: https://anonhg.NetBSD.org/src/rev/ebcc16d8c0f2
branches: trunk
changeset: 756450:ebcc16d8c0f2
user: jmmv <jmmv%NetBSD.org@localhost>
date: Sun Jul 18 10:12:33 2010 +0000
description:
Remove lint1 tests; they have been converted to atf and now live in
tests/util/xlint/lint1.
diffstat:
regress/usr.bin/Makefile | 4 +-
regress/usr.bin/xlint/Makefile | 5 ----
regress/usr.bin/xlint/lint1/Makefile | 19 -----------------
regress/usr.bin/xlint/lint1/fail-test0.c | 9 --------
regress/usr.bin/xlint/lint1/fail-test1.c | 9 --------
regress/usr.bin/xlint/lint1/fail-test2.c | 11 ----------
regress/usr.bin/xlint/lint1/fail-test3.c | 11 ----------
regress/usr.bin/xlint/lint1/fail-test4.c | 10 ---------
regress/usr.bin/xlint/lint1/fail-test5.c | 3 --
regress/usr.bin/xlint/lint1/fail-test6.c | 7 ------
regress/usr.bin/xlint/lint1/test0.c | 10 ---------
regress/usr.bin/xlint/lint1/test1.c | 8 -------
regress/usr.bin/xlint/lint1/test10.c | 18 ----------------
regress/usr.bin/xlint/lint1/test11.c | 7 ------
regress/usr.bin/xlint/lint1/test12.c | 8 -------
regress/usr.bin/xlint/lint1/test13.c | 8 -------
regress/usr.bin/xlint/lint1/test14.c | 14 ------------
regress/usr.bin/xlint/lint1/test15.c | 10 ---------
regress/usr.bin/xlint/lint1/test16.c | 13 -----------
regress/usr.bin/xlint/lint1/test17.c | 16 --------------
regress/usr.bin/xlint/lint1/test18.c | 6 -----
regress/usr.bin/xlint/lint1/test19.c | 4 ---
regress/usr.bin/xlint/lint1/test2.c | 13 -----------
regress/usr.bin/xlint/lint1/test20.c | 21 -------------------
regress/usr.bin/xlint/lint1/test21.c | 3 --
regress/usr.bin/xlint/lint1/test22.c | 11 ----------
regress/usr.bin/xlint/lint1/test23.c | 7 ------
regress/usr.bin/xlint/lint1/test24.c | 10 ---------
regress/usr.bin/xlint/lint1/test25.c | 6 -----
regress/usr.bin/xlint/lint1/test26.c | 35 --------------------------------
regress/usr.bin/xlint/lint1/test27.c | 23 ---------------------
regress/usr.bin/xlint/lint1/test3.c | 27 ------------------------
regress/usr.bin/xlint/lint1/test4.c | 7 ------
regress/usr.bin/xlint/lint1/test5.c | 7 ------
regress/usr.bin/xlint/lint1/test6.c | 7 ------
regress/usr.bin/xlint/lint1/test7.c | 7 ------
regress/usr.bin/xlint/lint1/test8.c | 7 ------
regress/usr.bin/xlint/lint1/test9.c | 11 ----------
38 files changed, 2 insertions(+), 410 deletions(-)
diffs (truncated from 573 to 300 lines):
diff -r 282e853d8f43 -r ebcc16d8c0f2 regress/usr.bin/Makefile
--- a/regress/usr.bin/Makefile Sun Jul 18 10:11:59 2010 +0000
+++ b/regress/usr.bin/Makefile Sun Jul 18 10:12:33 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.17 2009/12/14 12:43:48 uebayasi Exp $
+# $NetBSD: Makefile,v 1.18 2010/07/18 10:12:33 jmmv Exp $
.include <bsd.own.mk>
@@ -6,6 +6,6 @@
SUBDIR+= c++
.endif
-SUBDIR+= rtld sort xlint
+SUBDIR+= rtld sort
.include <bsd.subdir.mk>
diff -r 282e853d8f43 -r ebcc16d8c0f2 regress/usr.bin/xlint/Makefile
--- a/regress/usr.bin/xlint/Makefile Sun Jul 18 10:11:59 2010 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,5 +0,0 @@
-# $NetBSD: Makefile,v 1.1 2006/10/14 21:10:53 christos Exp $
-
-SUBDIR+= lint1
-
-.include <bsd.subdir.mk>
diff -r 282e853d8f43 -r ebcc16d8c0f2 regress/usr.bin/xlint/lint1/Makefile
--- a/regress/usr.bin/xlint/lint1/Makefile Sun Jul 18 10:11:59 2010 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,19 +0,0 @@
-# $NetBSD: Makefile,v 1.4 2006/10/23 00:08:54 christos Exp $
-
-.include <bsd.sys.mk>
-TESTS != echo test*.c
-FAIL_TESTS != echo fail-test*.c
-LINT1 = ${DESTDIR}/usr/libexec/lint1
-
-regress:
-. for i in ${TESTS}
- ${HOST_SH} -c "${LINT1} -g -S $i /dev/null"
- echo ok: $i
-. endfor
-. for i in ${FAIL_TESTS}
- ${HOST_SH} -c "! ${LINT1} -g -S -w $i /dev/null"
- echo ok: $i '(should warn & fail)'
-. endfor
-
-.include <bsd.subdir.mk>
-
diff -r 282e853d8f43 -r ebcc16d8c0f2 regress/usr.bin/xlint/lint1/fail-test0.c
--- a/regress/usr.bin/xlint/lint1/fail-test0.c Sun Jul 18 10:11:59 2010 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,9 +0,0 @@
-/* Flag information-losing constant conversion in argument lists */
-
-int f(unsigned int);
-
-void
-should_fail()
-{
- f(-1);
-}
diff -r 282e853d8f43 -r ebcc16d8c0f2 regress/usr.bin/xlint/lint1/fail-test1.c
--- a/regress/usr.bin/xlint/lint1/fail-test1.c Sun Jul 18 10:11:59 2010 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,9 +0,0 @@
-/* Flag information-losing constant conversion in argument lists */
-
-int f(unsigned int);
-
-void
-should_fail()
-{
- f(2.1);
-}
diff -r 282e853d8f43 -r ebcc16d8c0f2 regress/usr.bin/xlint/lint1/fail-test2.c
--- a/regress/usr.bin/xlint/lint1/fail-test2.c Sun Jul 18 10:11:59 2010 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,11 +0,0 @@
-/* Flag information-losing type conversion in argument lists */
-
-int f(unsigned int);
-
-void
-should_fail()
-{
- long long x = 20;
-
- f(x);
-}
diff -r 282e853d8f43 -r ebcc16d8c0f2 regress/usr.bin/xlint/lint1/fail-test3.c
--- a/regress/usr.bin/xlint/lint1/fail-test3.c Sun Jul 18 10:11:59 2010 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,11 +0,0 @@
-/* Flag information-losing type conversion in argument lists */
-
-int f(float);
-
-void
-should_fail()
-{
- double x = 2.0;
-
- f(x);
-}
diff -r 282e853d8f43 -r ebcc16d8c0f2 regress/usr.bin/xlint/lint1/fail-test4.c
--- a/regress/usr.bin/xlint/lint1/fail-test4.c Sun Jul 18 10:11:59 2010 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,10 +0,0 @@
-/* Flag information-losing type conversion in argument lists */
-
-int f(unsigned int);
-
-void
-should_fail()
-{
-
- f(0x7fffffffffffffffLL);
-}
diff -r 282e853d8f43 -r ebcc16d8c0f2 regress/usr.bin/xlint/lint1/fail-test5.c
--- a/regress/usr.bin/xlint/lint1/fail-test5.c Sun Jul 18 10:11:59 2010 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,3 +0,0 @@
-struct foo {
- int a[-1];
-};
diff -r 282e853d8f43 -r ebcc16d8c0f2 regress/usr.bin/xlint/lint1/fail-test6.c
--- a/regress/usr.bin/xlint/lint1/fail-test6.c Sun Jul 18 10:11:59 2010 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,7 +0,0 @@
-/* PR 39639: writing "long double" gave "long int" */
-
-int
-fail(long double *a, long int *b)
-{
- return a == b;
-}
diff -r 282e853d8f43 -r ebcc16d8c0f2 regress/usr.bin/xlint/lint1/test0.c
--- a/regress/usr.bin/xlint/lint1/test0.c Sun Jul 18 10:11:59 2010 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,10 +0,0 @@
-/* C99 struct initialization */
-struct {
- int i;
- char *s;
-} c[] = {
- { .i = 2, },
- { .s = "foo" },
- { .i = 1, .s = "bar" },
- { .s = "foo", .i = -1 },
-};
diff -r 282e853d8f43 -r ebcc16d8c0f2 regress/usr.bin/xlint/lint1/test1.c
--- a/regress/usr.bin/xlint/lint1/test1.c Sun Jul 18 10:11:59 2010 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,8 +0,0 @@
-/* C99 union initialization */
-union {
- int i;
- char *s;
-} c[] = {
- { i: 1 },
- { s: "foo" }
-};
diff -r 282e853d8f43 -r ebcc16d8c0f2 regress/usr.bin/xlint/lint1/test10.c
--- a/regress/usr.bin/xlint/lint1/test10.c Sun Jul 18 10:11:59 2010 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,18 +0,0 @@
-/* compound literals */
-
-struct p {
- short a, b, c, d;
-} zz = {
- 1, 2, 3, 4
-};
-
-struct p *bar(int i)
-{
- static struct p q[10];
- return &q[i];
-}
-
-foo()
-{
- *bar(1) = (struct p) { 1, 2, 3, 4 };
-}
diff -r 282e853d8f43 -r ebcc16d8c0f2 regress/usr.bin/xlint/lint1/test11.c
--- a/regress/usr.bin/xlint/lint1/test11.c Sun Jul 18 10:11:59 2010 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,7 +0,0 @@
-/* GCC compound statements */
-
-foo(unsigned long z)
-{
- z = ({ unsigned long tmp; tmp = 1; tmp; });
- foo(z);
-}
diff -r 282e853d8f43 -r ebcc16d8c0f2 regress/usr.bin/xlint/lint1/test12.c
--- a/regress/usr.bin/xlint/lint1/test12.c Sun Jul 18 10:11:59 2010 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,8 +0,0 @@
-/* C99 union initialization */
-union {
- int i[10];
- short s;
-} c[] = {
- { s: 2 },
- { i: { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 } },
-};
diff -r 282e853d8f43 -r ebcc16d8c0f2 regress/usr.bin/xlint/lint1/test13.c
--- a/regress/usr.bin/xlint/lint1/test13.c Sun Jul 18 10:11:59 2010 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,8 +0,0 @@
-/* C99 union initialization */
-struct {
- int i[10];
- char *s;
-} c[] = {
- { { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 },
- "foo" },
-};
diff -r 282e853d8f43 -r ebcc16d8c0f2 regress/usr.bin/xlint/lint1/test14.c
--- a/regress/usr.bin/xlint/lint1/test14.c Sun Jul 18 10:11:59 2010 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,14 +0,0 @@
-/* GCC compound statements with non-expressions */
-struct cpu_info {
- int bar;
-};
-
-int
-main(void)
-{
- return ({
- struct cpu_info *__ci;
- __asm__ volatile("movl %%fs:4,%0":"=r" (__ci));
- __ci;
- })->bar;
-}
diff -r 282e853d8f43 -r ebcc16d8c0f2 regress/usr.bin/xlint/lint1/test15.c
--- a/regress/usr.bin/xlint/lint1/test15.c Sun Jul 18 10:11:59 2010 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,10 +0,0 @@
-/* GCC compound statements with void type */
-
-void
-main(void)
-{
- ({
- void *v;
- __asm__ volatile("noop");
- });
-}
diff -r 282e853d8f43 -r ebcc16d8c0f2 regress/usr.bin/xlint/lint1/test16.c
--- a/regress/usr.bin/xlint/lint1/test16.c Sun Jul 18 10:11:59 2010 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,13 +0,0 @@
-/* CVT node handling in ?: operator */
-typedef unsigned long int size_t;
-struct filecore_direntry {
- unsigned len:32;
-};
-int
-main(void)
-{
- struct filecore_direntry dirent = { 0 };
- size_t uio_resid = 0;
- size_t bytelen = (((dirent.len)<(uio_resid))?(dirent.len):(uio_resid));
- return bytelen;
-}
diff -r 282e853d8f43 -r ebcc16d8c0f2 regress/usr.bin/xlint/lint1/test17.c
--- a/regress/usr.bin/xlint/lint1/test17.c Sun Jul 18 10:11:59 2010 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,16 +0,0 @@
-/* C9X struct/union member init, with nested union and trailing member */
-union node {
- void *next;
- char *data;
-};
-struct foo {
- int b;
- union node n;
- int c;
-};
-
-struct foo f = {
- .b = 1,
- .n = { .next = 0, },
- .c = 1
-};
diff -r 282e853d8f43 -r ebcc16d8c0f2 regress/usr.bin/xlint/lint1/test18.c
--- a/regress/usr.bin/xlint/lint1/test18.c Sun Jul 18 10:11:59 2010 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,6 +0,0 @@
-/* C9X array initializers */
-int foo[256] = {
- [2] = 1,
- [3] = 2,
- [4 ... 5] = 3
-};
diff -r 282e853d8f43 -r ebcc16d8c0f2 regress/usr.bin/xlint/lint1/test19.c
Home |
Main Index |
Thread Index |
Old Index