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/lint2 tests/lint: normalize whitespace i...
details: https://anonhg.NetBSD.org/src/rev/0e15762bc188
branches: trunk
changeset: 1023110:0e15762bc188
user: rillig <rillig%NetBSD.org@localhost>
date: Tue Aug 24 23:38:51 2021 +0000
description:
tests/lint: normalize whitespace in lint2 tests
Found a typo in read.ln, f124, which had just 'F' instead of the
intended 'F0'. Other than that, only whitespace changes.
diffstat:
tests/usr.bin/xlint/lint2/emit.exp-ln | 4 +-
tests/usr.bin/xlint/lint2/emit.ln | 10 ++--
tests/usr.bin/xlint/lint2/emit_lp64.exp-ln | 4 +-
tests/usr.bin/xlint/lint2/emit_lp64.ln | 6 +-
tests/usr.bin/xlint/lint2/msg_000.ln | 10 ++--
tests/usr.bin/xlint/lint2/msg_001.ln | 18 +++---
tests/usr.bin/xlint/lint2/msg_002.ln | 10 ++--
tests/usr.bin/xlint/lint2/msg_003.ln | 14 +++---
tests/usr.bin/xlint/lint2/msg_004.ln | 18 +++---
tests/usr.bin/xlint/lint2/msg_005.ln | 18 +++---
tests/usr.bin/xlint/lint2/msg_006.ln | 18 +++---
tests/usr.bin/xlint/lint2/msg_008.ln | 6 +-
tests/usr.bin/xlint/lint2/msg_009.ln | 6 +-
tests/usr.bin/xlint/lint2/msg_010.ln | 4 +-
tests/usr.bin/xlint/lint2/msg_011.ln | 18 +++---
tests/usr.bin/xlint/lint2/msg_012.ln | 14 +++---
tests/usr.bin/xlint/lint2/read.ln | 68 +++++++++++++++---------------
tests/usr.bin/xlint/lint2/read_lp64.ln | 10 ++--
tests/usr.bin/xlint/lint2/read_printf.ln | 26 +++++-----
19 files changed, 141 insertions(+), 141 deletions(-)
diffs (truncated from 571 to 300 lines):
diff -r a5ba65bc2fbf -r 0e15762bc188 tests/usr.bin/xlint/lint2/emit.exp-ln
--- a/tests/usr.bin/xlint/lint2/emit.exp-ln Tue Aug 24 21:30:52 2021 +0000
+++ b/tests/usr.bin/xlint/lint2/emit.exp-ln Tue Aug 24 23:38:51 2021 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: emit.exp-ln,v 1.1 2021/08/24 21:30:52 rillig Exp $
+# $NetBSD: emit.exp-ln,v 1.2 2021/08/24 23:38:51 rillig Exp $
S llib-lemit.ln
-0s llib-lemit.ln
+0 s llib-lemit.ln
# Normally, it does not matter in which filename a particular symbol is
# defined. Only in cases where a file defines an anonymous tag type (struct,
diff -r a5ba65bc2fbf -r 0e15762bc188 tests/usr.bin/xlint/lint2/emit.ln
--- a/tests/usr.bin/xlint/lint2/emit.ln Tue Aug 24 21:30:52 2021 +0000
+++ b/tests/usr.bin/xlint/lint2/emit.ln Tue Aug 24 23:38:51 2021 +0000
@@ -1,9 +1,9 @@
-# $NetBSD: emit.ln,v 1.1 2021/08/24 21:30:52 rillig Exp $
+# $NetBSD: emit.ln,v 1.2 2021/08/24 23:38:51 rillig Exp $
#
# Test emitting a lint library file.
# Extracted from ../lint1/emit.exp-ln.
-0s emit.c
+0 s emit.c
S emit.c
# Global variables that are declared using 'extern' are not part of a
@@ -23,17 +23,17 @@
# library's interface, therefore they are omitted from the output.
121 d 0.121 e 30return_void_unknown_parameters F V
122 d 0.122 e 38return_implicit_int_unknown_parameters F I
-125 d 0.125 e 32extern_return_void_no_parameters F 0 V
+125 d 0.125 e 32extern_return_void_no_parameters F0 V
# Function calls are not part of a library's interface, therefore they are
# omitted from the output.
-161 c 0.161 s2 "%" i 9my_printf f2 PcC PC V
+161 c 0.161 s2"%" i 9my_printf f2 PcC PC V
# Function definitions are copied to the output.
159 d 0.159 d 14cover_outqchar F0 V
# Taken from ../lint1/expr_promote.exp-ln.
-0s expr_promote.c
+0 s expr_promote.c
S expr_promote.c
10 d 0.10 e 4sink F2 PcC E V
diff -r a5ba65bc2fbf -r 0e15762bc188 tests/usr.bin/xlint/lint2/emit_lp64.exp-ln
--- a/tests/usr.bin/xlint/lint2/emit_lp64.exp-ln Tue Aug 24 21:30:52 2021 +0000
+++ b/tests/usr.bin/xlint/lint2/emit_lp64.exp-ln Tue Aug 24 23:38:51 2021 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: emit_lp64.exp-ln,v 1.1 2021/08/24 21:30:52 rillig Exp $
+# $NetBSD: emit_lp64.exp-ln,v 1.2 2021/08/24 23:38:51 rillig Exp $
S llib-lemit_lp64.ln
-0s llib-lemit_lp64.ln
+0 s llib-lemit_lp64.ln
0 d 0.0 du 16uint128_function F0 uJ
0 d 0.0 tu 15int128_variable J
diff -r a5ba65bc2fbf -r 0e15762bc188 tests/usr.bin/xlint/lint2/emit_lp64.ln
--- a/tests/usr.bin/xlint/lint2/emit_lp64.ln Tue Aug 24 21:30:52 2021 +0000
+++ b/tests/usr.bin/xlint/lint2/emit_lp64.ln Tue Aug 24 23:38:51 2021 +0000
@@ -1,11 +1,11 @@
-# $NetBSD: emit_lp64.ln,v 1.1 2021/08/24 21:30:52 rillig Exp $
+# $NetBSD: emit_lp64.ln,v 1.2 2021/08/24 23:38:51 rillig Exp $
#
# Test emitting a lint library file on an LP64 platform.
-0s first-file.c
+0 s first-file.c
S first-file.c
10 d 0.10 t 15int128_variable J
-0s second-file.c
+0 s second-file.c
S second-file.c
20 d 0.20 d 16uint128_function F0 uJ
diff -r a5ba65bc2fbf -r 0e15762bc188 tests/usr.bin/xlint/lint2/msg_000.ln
--- a/tests/usr.bin/xlint/lint2/msg_000.ln Tue Aug 24 21:30:52 2021 +0000
+++ b/tests/usr.bin/xlint/lint2/msg_000.ln Tue Aug 24 23:38:51 2021 +0000
@@ -1,14 +1,14 @@
-# $NetBSD: msg_000.ln,v 1.1 2021/08/05 22:36:08 rillig Exp $
+# $NetBSD: msg_000.ln,v 1.2 2021/08/24 23:38:51 rillig Exp $
#
# Test data for message 0 of lint2:
# %s used( %s ), but not defined
#
# Define file number 0.
-0smsg_000.c
+0 s msg_000.c
# Define the main file of the translation unit.
-Smsg_000.c
+S msg_000.c
# Have a function that is used but not defined, and a function that is defined
# but not used, generated by this code:
@@ -28,7 +28,7 @@
# 'I' the first argument has type 'int'
# 'D' the first argument has type 'double'
# 'I' the return type of the function is (implicitly) 'int'
-3c0.3p1i16used_not_definedf2IDI
+3 c 0.3 p1 i 16used_not_defined f2 I D I
#
# The function definition in line 2 generates this entry:
# '2' logical line 2 in the main .c source
@@ -39,4 +39,4 @@
# '16...' the name of the defined function
# 'f0' it's a function with 0 arguments
# 'I' the return type of the function is (implicitly) 'int'
-2d0.2do16defined_not_usedf0I
+2 d 0.2 d o 16defined_not_used f0 I
diff -r a5ba65bc2fbf -r 0e15762bc188 tests/usr.bin/xlint/lint2/msg_001.ln
--- a/tests/usr.bin/xlint/lint2/msg_001.ln Tue Aug 24 21:30:52 2021 +0000
+++ b/tests/usr.bin/xlint/lint2/msg_001.ln Tue Aug 24 23:38:51 2021 +0000
@@ -1,25 +1,25 @@
-# $NetBSD: msg_001.ln,v 1.3 2021/08/07 19:07:03 rillig Exp $
+# $NetBSD: msg_001.ln,v 1.4 2021/08/24 23:38:51 rillig Exp $
#
# Test data for message 1 of lint2:
# %s defined( %s ), but never used
#
-0smsg_001.c
-Smsg_001.c
+0 s msg_001.c
+S msg_001.c
-3c0.3p1i16used_not_definedf2IDI
-2d0.2do16defined_not_usedf0I
+3 c 0.3 p1 i 16used_not_defined f2 I D I
+2 d 0.2 d o 16defined_not_used f0 I
# The function 'main' always counts as used.
# int main(void) {}
-10d0.10d4mainF0I
+10 d 0.10 d 4main F0 I
# extern main() {}
-12d0.12e4mainFI
+12 d 0.12 e 4main F I
# If a function is declared once in old style and once with prototype,
# the prototype definition is preferred; see chkname.
#
# extern merge_old_style_and_prototype();
-20d0.20e29merge_old_style_and_prototypeFI
+20 d 0.20 e 29merge_old_style_and_prototype F I
# extern int merge_old_style_and_prototype(char *);
-21d0.21e29merge_old_style_and_prototypeF1PCI
+21 d 0.21 e 29merge_old_style_and_prototype F1 PCI
diff -r a5ba65bc2fbf -r 0e15762bc188 tests/usr.bin/xlint/lint2/msg_002.ln
--- a/tests/usr.bin/xlint/lint2/msg_002.ln Tue Aug 24 21:30:52 2021 +0000
+++ b/tests/usr.bin/xlint/lint2/msg_002.ln Tue Aug 24 23:38:51 2021 +0000
@@ -1,14 +1,14 @@
-# $NetBSD: msg_002.ln,v 1.2 2021/08/06 16:21:00 rillig Exp $
+# $NetBSD: msg_002.ln,v 1.3 2021/08/24 23:38:51 rillig Exp $
#
# Test data for message 2 of lint2:
# %s declared( %s ), but never used or defined
#
-0smsg_002.c
-Smsg_002.c
+0 s msg_002.c
+S msg_002.c
# extern int only_declared;
-2d0.2e13only_declaredI
+2 d 0.2 e 13only_declared I
# int defined;
-3d0.3t7definedI
+3 d 0.3 t 7defined I
diff -r a5ba65bc2fbf -r 0e15762bc188 tests/usr.bin/xlint/lint2/msg_003.ln
--- a/tests/usr.bin/xlint/lint2/msg_003.ln Tue Aug 24 21:30:52 2021 +0000
+++ b/tests/usr.bin/xlint/lint2/msg_003.ln Tue Aug 24 23:38:51 2021 +0000
@@ -1,14 +1,14 @@
-# $NetBSD: msg_003.ln,v 1.2 2021/08/07 19:07:03 rillig Exp $
+# $NetBSD: msg_003.ln,v 1.3 2021/08/24 23:38:51 rillig Exp $
#
# Test data for message 3 of lint2:
# %s multiply defined %s :: %s
-0smsg_003_a.c
-Smsg_003_a.c
+0 s msg_003_a.c
+S msg_003_a.c
# msg_003_a.c:10: int function(void);
-10d0.10d8functionF0I
+10 d 0.10 d 8function F0 I
-0smsg_003_b.c
-Smsg_003_b.c
+0 s msg_003_b.c
+S msg_003_b.c
# msg_003_b.c:10: int function(void);
-10d0.10d8functionF0I
+10 d 0.10 d 8function F0 I
diff -r a5ba65bc2fbf -r 0e15762bc188 tests/usr.bin/xlint/lint2/msg_004.ln
--- a/tests/usr.bin/xlint/lint2/msg_004.ln Tue Aug 24 21:30:52 2021 +0000
+++ b/tests/usr.bin/xlint/lint2/msg_004.ln Tue Aug 24 23:38:51 2021 +0000
@@ -1,17 +1,17 @@
-# $NetBSD: msg_004.ln,v 1.2 2021/08/07 19:07:03 rillig Exp $
+# $NetBSD: msg_004.ln,v 1.3 2021/08/24 23:38:51 rillig Exp $
#
# Test data for message 4 of lint2:
# %s value used inconsistently %s :: %s
# msg_004_define.c:2: double add(double a, double b) { return a + b; }
-0smsg_004_define.c
-Smsg_004_define.c
-2d0.2dr3addF2DDD
+0 s msg_004_define.c
+S msg_004_define.c
+2 d 0.2 d r 3add F2 D D D
# msg_004_call.c:2: int add(int, int);
# msg_004_call.c:4: int main(void) { return add(2, 3); }
-0smsg_004_call.c
-Smsg_004_call.c
-2d0.2e3addF2III
-4c0.4p1p2u3addf2III
-4d0.4dr4mainF0I
+0 s msg_004_call.c
+S msg_004_call.c
+2 d 0.2 e 3add F2 I I I
+4 c 0.4 p1 p2 u 3add f2 I I I
+4 d 0.4 d r 4main F0 I
diff -r a5ba65bc2fbf -r 0e15762bc188 tests/usr.bin/xlint/lint2/msg_005.ln
--- a/tests/usr.bin/xlint/lint2/msg_005.ln Tue Aug 24 21:30:52 2021 +0000
+++ b/tests/usr.bin/xlint/lint2/msg_005.ln Tue Aug 24 23:38:51 2021 +0000
@@ -1,17 +1,17 @@
-# $NetBSD: msg_005.ln,v 1.2 2021/08/07 19:07:03 rillig Exp $
+# $NetBSD: msg_005.ln,v 1.3 2021/08/24 23:38:51 rillig Exp $
#
# Test data for message 5 of lint2:
# %s value declared inconsistently (%s != %s) %s :: %s
# msg_005_define.c:2: double add(double a, double b) { return a + b; }
-0smsg_005_define.c
-Smsg_005_define.c
-2d0.2dr3addF2DDD
+0 s msg_005_define.c
+S msg_005_define.c
+2 d 0.2 d r 3add F2 D D D
# msg_005_call.c:2: int add(int, int);
# msg_005_call.c:4: int main(void) { return add(2, 3); }
-0smsg_005_call.c
-Smsg_005_call.c
-2d0.2e3addF2III
-4c0.4p1p2u3addf2III
-4d0.4dr4mainF0I
+0 s msg_005_call.c
+S msg_005_call.c
+2 d 0.2 e 3add F2 I I I
+4 c 0.4 p1 p2 u 3add f2 I I I
+4 d 0.4 d r 4main F0 I
diff -r a5ba65bc2fbf -r 0e15762bc188 tests/usr.bin/xlint/lint2/msg_006.ln
--- a/tests/usr.bin/xlint/lint2/msg_006.ln Tue Aug 24 21:30:52 2021 +0000
+++ b/tests/usr.bin/xlint/lint2/msg_006.ln Tue Aug 24 23:38:51 2021 +0000
@@ -1,17 +1,17 @@
-# $NetBSD: msg_006.ln,v 1.2 2021/08/07 19:07:03 rillig Exp $
+# $NetBSD: msg_006.ln,v 1.3 2021/08/24 23:38:51 rillig Exp $
#
# Test data for message 6 of lint2:
# %s, arg %d used inconsistently %s[%s] :: %s[%s]
# msg_006_define.c:2: double add(double a, double b) { return a + b; }
-0smsg_006_define.c
-Smsg_006_define.c
-2d0.2dr3addF2DDD
+0 s msg_006_define.c
+S msg_006_define.c
+2 d 0.2 d r 3add F2 D D D
# msg_006_call.c:2: int add(int, int);
# msg_006_call.c:4: int main(void) { return add(2, 3); }
-0smsg_006_call.c
-Smsg_006_call.c
-2d0.2e3addF2III
-4c0.4p1p2u3addf2III
-4d0.4dr4mainF0I
+0 s msg_006_call.c
+S msg_006_call.c
+2 d 0.2 e 3add F2 I I I
+4 c 0.4 p1 p2 u 3add f2 I I I
+4 d 0.4 d r 4main F0 I
diff -r a5ba65bc2fbf -r 0e15762bc188 tests/usr.bin/xlint/lint2/msg_008.ln
--- a/tests/usr.bin/xlint/lint2/msg_008.ln Tue Aug 24 21:30:52 2021 +0000
+++ b/tests/usr.bin/xlint/lint2/msg_008.ln Tue Aug 24 23:38:51 2021 +0000
@@ -1,11 +1,11 @@
-# $NetBSD: msg_008.ln,v 1.2 2021/08/14 14:25:51 rillig Exp $
+# $NetBSD: msg_008.ln,v 1.3 2021/08/24 23:38:51 rillig Exp $
#
# Test data for message 8 of lint2:
Home |
Main Index |
Thread Index |
Old Index