Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/usr.bin/indent tests/indent: remove redundant test lis...



details:   https://anonhg.NetBSD.org/src/rev/db3f86c3aec0
branches:  trunk
changeset: 1024434:db3f86c3aec0
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Oct 23 20:07:03 2021 +0000

description:
tests/indent: remove redundant test list_head

The test cases are already in fmt_decl.c, in old_style_definition and
LIST_HEAD.

diffstat:

 distrib/sets/lists/tests/mi             |   6 +++---
 tests/usr.bin/indent/Makefile           |   4 +---
 tests/usr.bin/indent/fmt_decl.c         |   3 ++-
 tests/usr.bin/indent/list_head.0        |  17 -----------------
 tests/usr.bin/indent/list_head.0.stdout |  15 ---------------
 5 files changed, 6 insertions(+), 39 deletions(-)

diffs (95 lines):

diff -r 361ccf90cada -r db3f86c3aec0 distrib/sets/lists/tests/mi
--- a/distrib/sets/lists/tests/mi       Sat Oct 23 20:01:14 2021 +0000
+++ b/distrib/sets/lists/tests/mi       Sat Oct 23 20:07:03 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.1156 2021/10/23 20:01:14 rillig Exp $
+# $NetBSD: mi,v 1.1157 2021/10/23 20:07:03 rillig Exp $
 #
 # Note: don't delete entries from here - mark them as "obsolete" instead.
 #
@@ -4781,8 +4781,8 @@
 ./usr/tests/usr.bin/indent/lineno.0                                    tests-obsolete          obsolete,atf
 ./usr/tests/usr.bin/indent/lineno.0.pro                                        tests-obsolete          obsolete,atf
 ./usr/tests/usr.bin/indent/lineno.0.stdout                             tests-obsolete          obsolete,atf
-./usr/tests/usr.bin/indent/list_head.0                                 tests-usr.bin-tests     compattestfile,atf
-./usr/tests/usr.bin/indent/list_head.0.stdout                          tests-usr.bin-tests     compattestfile,atf
+./usr/tests/usr.bin/indent/list_head.0                                 tests-obsolete          obsolete,atf
+./usr/tests/usr.bin/indent/list_head.0.stdout                          tests-obsolete          obsolete,atf
 ./usr/tests/usr.bin/indent/ncs.0                                       tests-obsolete          obsolete,atf
 ./usr/tests/usr.bin/indent/ncs.0.pro                                   tests-obsolete          obsolete,atf
 ./usr/tests/usr.bin/indent/ncs.0.stdout                                        tests-obsolete          obsolete,atf
diff -r 361ccf90cada -r db3f86c3aec0 tests/usr.bin/indent/Makefile
--- a/tests/usr.bin/indent/Makefile     Sat Oct 23 20:01:14 2021 +0000
+++ b/tests/usr.bin/indent/Makefile     Sat Oct 23 20:07:03 2021 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.28 2021/10/23 20:01:14 rillig Exp $
+#      $NetBSD: Makefile,v 1.29 2021/10/23 20:07:03 rillig Exp $
 
 .include <bsd.own.mk>
 
@@ -17,8 +17,6 @@
 FILES+=                lex_ident.c
 FILES+=                lex_char.c
 FILES+=                lex_string.c
-FILES+=                list_head.0
-FILES+=                list_head.0.stdout
 FILES+=                offsetof.0
 FILES+=                offsetof.0.stdout
 FILES+=                opt--version.0
diff -r 361ccf90cada -r db3f86c3aec0 tests/usr.bin/indent/fmt_decl.c
--- a/tests/usr.bin/indent/fmt_decl.c   Sat Oct 23 20:01:14 2021 +0000
+++ b/tests/usr.bin/indent/fmt_decl.c   Sat Oct 23 20:07:03 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fmt_decl.c,v 1.2 2021/10/23 20:01:14 rillig Exp $      */
+/*     $NetBSD: fmt_decl.c,v 1.3 2021/10/23 20:07:03 rillig Exp $      */
 /* $FreeBSD: head/usr.bin/indent/tests/declarations.0 334478 2018-06-01 09:41:15Z pstef $ */
 
 /* See FreeBSD r303570 */
@@ -193,6 +193,7 @@
 #indent end
 
 
+/* See FreeBSD r309380 */
 #indent input
 static LIST_HEAD(, alq) ald_active;
 static int ald_shutingdown = 0;
diff -r 361ccf90cada -r db3f86c3aec0 tests/usr.bin/indent/list_head.0
--- a/tests/usr.bin/indent/list_head.0  Sat Oct 23 20:01:14 2021 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,17 +0,0 @@
-/*     $NetBSD: list_head.0,v 1.1 2019/04/04 15:27:35 kamil Exp $      */
-/* $FreeBSD: head/usr.bin/indent/tests/list_head.0 313544 2017-02-10 09:31:39Z pstef $ */
-/* See r309380 */
-static int
-do_execve(td, args, mac_p)
-       struct thread *td;
-       struct image_args *args;
-       struct mac *mac_p;
-{
-
-}
-
-static LIST_HEAD(, alq) ald_active;
-static int ald_shuttingdown = 0;
-struct thread *ald_thread;
-
-
diff -r 361ccf90cada -r db3f86c3aec0 tests/usr.bin/indent/list_head.0.stdout
--- a/tests/usr.bin/indent/list_head.0.stdout   Sat Oct 23 20:01:14 2021 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-/*     $NetBSD: list_head.0.stdout,v 1.1 2019/04/04 15:27:35 kamil Exp $       */
-/* $FreeBSD: head/usr.bin/indent/tests/list_head.0.stdout 313544 2017-02-10 09:31:39Z pstef $ */
-/* See r309380 */
-static int
-do_execve(td, args, mac_p)
-       struct thread  *td;
-       struct image_args *args;
-       struct mac     *mac_p;
-{
-
-}
-
-static LIST_HEAD(, alq) ald_active;
-static int     ald_shuttingdown = 0;
-struct thread  *ald_thread;



Home | Main Index | Thread Index | Old Index