Source-Changes-HG archive

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

[src/trunk]: src/tests/usr.bin/xlint/lint1 tests/lint: run all platform tests...



details:   https://anonhg.NetBSD.org/src/rev/4c8047aed8db
branches:  trunk
changeset: 987427:4c8047aed8db
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sun Sep 26 14:28:22 2021 +0000

description:
tests/lint: run all platform tests with the same options

diffstat:

 tests/usr.bin/xlint/lint1/platform_ilp32.c     |   4 +++-
 tests/usr.bin/xlint/lint1/platform_ilp32.exp   |   2 +-
 tests/usr.bin/xlint/lint1/platform_int.c       |   4 ++--
 tests/usr.bin/xlint/lint1/platform_ldbl128.c   |   4 +++-
 tests/usr.bin/xlint/lint1/platform_ldbl128.exp |   2 +-
 tests/usr.bin/xlint/lint1/platform_ldbl64.c    |   4 +++-
 tests/usr.bin/xlint/lint1/platform_ldbl64.exp  |   2 +-
 tests/usr.bin/xlint/lint1/platform_ldbl96.c    |   4 +++-
 tests/usr.bin/xlint/lint1/platform_ldbl96.exp  |   2 +-
 tests/usr.bin/xlint/lint1/platform_long.c      |  11 ++---------
 tests/usr.bin/xlint/lint1/platform_lp64.c      |   3 ++-
 tests/usr.bin/xlint/lint1/platform_lp64.exp    |   2 +-
 tests/usr.bin/xlint/lint1/platform_schar.c     |   4 +++-
 tests/usr.bin/xlint/lint1/platform_schar.exp   |   2 +-
 tests/usr.bin/xlint/lint1/platform_uchar.c     |   4 +++-
 tests/usr.bin/xlint/lint1/platform_uchar.exp   |   2 +-
 16 files changed, 31 insertions(+), 25 deletions(-)

diffs (223 lines):

diff -r e08290f226f6 -r 4c8047aed8db tests/usr.bin/xlint/lint1/platform_ilp32.c
--- a/tests/usr.bin/xlint/lint1/platform_ilp32.c        Sun Sep 26 13:45:54 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/platform_ilp32.c        Sun Sep 26 14:28:22 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: platform_ilp32.c,v 1.1 2021/09/26 03:17:59 rillig Exp $        */
+/*     $NetBSD: platform_ilp32.c,v 1.2 2021/09/26 14:28:22 rillig Exp $        */
 # 3 "platform_ilp32.c"
 
 /*
@@ -6,8 +6,10 @@
  * pointer types.
  */
 
+/* lint1-extra-flags: -c -h -a -p -b -r -z */
 /* lint1-only-if: ilp32 */
 
 // TODO: Add some code that passes.
 // TODO: Add some code that fails.
+
 /* expect+1: warning: empty translation unit [272] */
diff -r e08290f226f6 -r 4c8047aed8db tests/usr.bin/xlint/lint1/platform_ilp32.exp
--- a/tests/usr.bin/xlint/lint1/platform_ilp32.exp      Sun Sep 26 13:45:54 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/platform_ilp32.exp      Sun Sep 26 14:28:22 2021 +0000
@@ -1,1 +1,1 @@
-platform_ilp32.c(14): warning: empty translation unit [272]
+platform_ilp32.c(16): warning: empty translation unit [272]
diff -r e08290f226f6 -r 4c8047aed8db tests/usr.bin/xlint/lint1/platform_int.c
--- a/tests/usr.bin/xlint/lint1/platform_int.c  Sun Sep 26 13:45:54 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/platform_int.c  Sun Sep 26 14:28:22 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: platform_int.c,v 1.1 2021/09/26 03:17:59 rillig Exp $  */
+/*     $NetBSD: platform_int.c,v 1.2 2021/09/26 14:28:22 rillig Exp $  */
 # 3 "platform_int.c"
 
 /*
@@ -6,7 +6,7 @@
  * int and ptr_diff is signed int.
  */
 
-/* lint1-extra-flags: -h */
+/* lint1-extra-flags: -c -h -a -p -b -r -z */
 /* lint1-only-if: int */
 
 void to_size(typeof(sizeof(int)));
diff -r e08290f226f6 -r 4c8047aed8db tests/usr.bin/xlint/lint1/platform_ldbl128.c
--- a/tests/usr.bin/xlint/lint1/platform_ldbl128.c      Sun Sep 26 13:45:54 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/platform_ldbl128.c      Sun Sep 26 14:28:22 2021 +0000
@@ -1,12 +1,14 @@
-/*     $NetBSD: platform_ldbl128.c,v 1.1 2021/09/26 03:17:59 rillig Exp $      */
+/*     $NetBSD: platform_ldbl128.c,v 1.2 2021/09/26 14:28:22 rillig Exp $      */
 # 3 "platform_ldbl128.c"
 
 /*
  * Test features that only apply to platforms that have 128-bit long double.
  */
 
+/* lint1-extra-flags: -c -h -a -p -b -r -z */
 /* lint1-only-if: ldbl-128 */
 
 // TODO: Add some code that passes.
 // TODO: Add some code that fails.
+
 /* expect+1: warning: empty translation unit [272] */
diff -r e08290f226f6 -r 4c8047aed8db tests/usr.bin/xlint/lint1/platform_ldbl128.exp
--- a/tests/usr.bin/xlint/lint1/platform_ldbl128.exp    Sun Sep 26 13:45:54 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/platform_ldbl128.exp    Sun Sep 26 14:28:22 2021 +0000
@@ -1,1 +1,1 @@
-platform_ldbl128.c(13): warning: empty translation unit [272]
+platform_ldbl128.c(15): warning: empty translation unit [272]
diff -r e08290f226f6 -r 4c8047aed8db tests/usr.bin/xlint/lint1/platform_ldbl64.c
--- a/tests/usr.bin/xlint/lint1/platform_ldbl64.c       Sun Sep 26 13:45:54 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/platform_ldbl64.c       Sun Sep 26 14:28:22 2021 +0000
@@ -1,12 +1,14 @@
-/*     $NetBSD: platform_ldbl64.c,v 1.1 2021/09/26 03:17:59 rillig Exp $       */
+/*     $NetBSD: platform_ldbl64.c,v 1.2 2021/09/26 14:28:22 rillig Exp $       */
 # 3 "platform_ldbl64.c"
 
 /*
  * Test features that only apply to platforms that have 64-bit long double.
  */
 
+/* lint1-extra-flags: -c -h -a -p -b -r -z */
 /* lint1-only-if: ldbl-64 */
 
 // TODO: Add some code that passes.
 // TODO: Add some code that fails.
+
 /* expect+1: warning: empty translation unit [272] */
diff -r e08290f226f6 -r 4c8047aed8db tests/usr.bin/xlint/lint1/platform_ldbl64.exp
--- a/tests/usr.bin/xlint/lint1/platform_ldbl64.exp     Sun Sep 26 13:45:54 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/platform_ldbl64.exp     Sun Sep 26 14:28:22 2021 +0000
@@ -1,1 +1,1 @@
-platform_ldbl64.c(13): warning: empty translation unit [272]
+platform_ldbl64.c(15): warning: empty translation unit [272]
diff -r e08290f226f6 -r 4c8047aed8db tests/usr.bin/xlint/lint1/platform_ldbl96.c
--- a/tests/usr.bin/xlint/lint1/platform_ldbl96.c       Sun Sep 26 13:45:54 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/platform_ldbl96.c       Sun Sep 26 14:28:22 2021 +0000
@@ -1,12 +1,14 @@
-/*     $NetBSD: platform_ldbl96.c,v 1.1 2021/09/26 03:17:59 rillig Exp $       */
+/*     $NetBSD: platform_ldbl96.c,v 1.2 2021/09/26 14:28:22 rillig Exp $       */
 # 3 "platform_ldbl96.c"
 
 /*
  * Test features that only apply to platforms that have 96-bit long double.
  */
 
+/* lint1-extra-flags: -c -h -a -p -b -r -z */
 /* lint1-only-if: ldbl-96 */
 
 // TODO: Add some code that passes.
 // TODO: Add some code that fails.
+
 /* expect+1: warning: empty translation unit [272] */
diff -r e08290f226f6 -r 4c8047aed8db tests/usr.bin/xlint/lint1/platform_ldbl96.exp
--- a/tests/usr.bin/xlint/lint1/platform_ldbl96.exp     Sun Sep 26 13:45:54 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/platform_ldbl96.exp     Sun Sep 26 14:28:22 2021 +0000
@@ -1,1 +1,1 @@
-platform_ldbl96.c(13): warning: empty translation unit [272]
+platform_ldbl96.c(15): warning: empty translation unit [272]
diff -r e08290f226f6 -r 4c8047aed8db tests/usr.bin/xlint/lint1/platform_long.c
--- a/tests/usr.bin/xlint/lint1/platform_long.c Sun Sep 26 13:45:54 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/platform_long.c Sun Sep 26 14:28:22 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: platform_long.c,v 1.1 2021/09/26 03:17:59 rillig Exp $ */
+/*     $NetBSD: platform_long.c,v 1.2 2021/09/26 14:28:22 rillig Exp $ */
 # 3 "platform_long.c"
 
 /*
@@ -6,7 +6,7 @@
  * long and ptr_diff is signed long.
  */
 
-/* lint1-extra-flags: -h */
+/* lint1-extra-flags: -c -h -a -p -b -r -z */
 /* lint1-only-if: long */
 
 void to_size(typeof(sizeof(int)));
@@ -20,10 +20,3 @@
 
 /* expect+1: warning: static variable unused_variable unused [226] */
 static int unused_variable;
-
-/*
- * XXX: On 2021-09-23, the releng build failed on i386 but not on sparc.
- * usr.bin/make/cond.c, call to is_token with unsigned char as third argument.
- * Based on that, this test should succeed on sparc, but with a cross-compiled
- * lint on x86_64 with ARCHSUBDIR=sparc, it failed.
- */
diff -r e08290f226f6 -r 4c8047aed8db tests/usr.bin/xlint/lint1/platform_lp64.c
--- a/tests/usr.bin/xlint/lint1/platform_lp64.c Sun Sep 26 13:45:54 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/platform_lp64.c Sun Sep 26 14:28:22 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: platform_lp64.c,v 1.1 2021/09/26 03:17:59 rillig Exp $ */
+/*     $NetBSD: platform_lp64.c,v 1.2 2021/09/26 14:28:22 rillig Exp $ */
 # 3 "platform_lp64.c"
 
 /*
@@ -6,6 +6,7 @@
  * long and pointer types.
  */
 
+/* lint1-extra-flags: -c -h -a -p -b -r -z */
 /* lint1-only-if: lp64 */
 
 void to_size_t(typeof(sizeof(int)));
diff -r e08290f226f6 -r 4c8047aed8db tests/usr.bin/xlint/lint1/platform_lp64.exp
--- a/tests/usr.bin/xlint/lint1/platform_lp64.exp       Sun Sep 26 13:45:54 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/platform_lp64.exp       Sun Sep 26 14:28:22 2021 +0000
@@ -1,1 +1,1 @@
-platform_lp64.c(21): warning: static variable unused_variable unused [226]
+platform_lp64.c(22): warning: static variable unused_variable unused [226]
diff -r e08290f226f6 -r 4c8047aed8db tests/usr.bin/xlint/lint1/platform_schar.c
--- a/tests/usr.bin/xlint/lint1/platform_schar.c        Sun Sep 26 13:45:54 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/platform_schar.c        Sun Sep 26 14:28:22 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: platform_schar.c,v 1.1 2021/09/26 03:17:59 rillig Exp $        */
+/*     $NetBSD: platform_schar.c,v 1.2 2021/09/26 14:28:22 rillig Exp $        */
 # 3 "platform_schar.c"
 
 /*
@@ -6,8 +6,10 @@
  * representation as signed char.
  */
 
+/* lint1-extra-flags: -c -h -a -p -b -r -z */
 /* lint1-only-if: schar */
 
 // TODO: Add some code that passes.
 // TODO: Add some code that fails.
+
 /* expect+1: warning: empty translation unit [272] */
diff -r e08290f226f6 -r 4c8047aed8db tests/usr.bin/xlint/lint1/platform_schar.exp
--- a/tests/usr.bin/xlint/lint1/platform_schar.exp      Sun Sep 26 13:45:54 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/platform_schar.exp      Sun Sep 26 14:28:22 2021 +0000
@@ -1,1 +1,1 @@
-platform_schar.c(14): warning: empty translation unit [272]
+platform_schar.c(16): warning: empty translation unit [272]
diff -r e08290f226f6 -r 4c8047aed8db tests/usr.bin/xlint/lint1/platform_uchar.c
--- a/tests/usr.bin/xlint/lint1/platform_uchar.c        Sun Sep 26 13:45:54 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/platform_uchar.c        Sun Sep 26 14:28:22 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: platform_uchar.c,v 1.1 2021/09/26 03:17:59 rillig Exp $        */
+/*     $NetBSD: platform_uchar.c,v 1.2 2021/09/26 14:28:22 rillig Exp $        */
 # 3 "platform_uchar.c"
 
 /*
@@ -6,8 +6,10 @@
  * representation as unsigned char.
  */
 
+/* lint1-extra-flags: -c -h -a -p -b -r -z */
 /* lint1-only-if: uchar */
 
 // TODO: Add some code that passes.
 // TODO: Add some code that fails.
+
 /* expect+1: warning: empty translation unit [272] */
diff -r e08290f226f6 -r 4c8047aed8db tests/usr.bin/xlint/lint1/platform_uchar.exp
--- a/tests/usr.bin/xlint/lint1/platform_uchar.exp      Sun Sep 26 13:45:54 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/platform_uchar.exp      Sun Sep 26 14:28:22 2021 +0000
@@ -1,1 +1,1 @@
-platform_uchar.c(14): warning: empty translation unit [272]
+platform_uchar.c(16): warning: empty translation unit [272]



Home | Main Index | Thread Index | Old Index