Thu Jun 25 11:12:03 2020 UTC ()
Reference PRs consistently.


(jruoho)
diff -r1.7 -r1.8 src/tests/lib/libc/sys/t_kevent.c
diff -r1.1 -r1.2 src/tests/lib/libm/t_hypot.c
diff -r1.2 -r1.3 src/tests/usr.bin/gdb/t_regress.sh
diff -r1.1 -r1.2 src/tests/usr.bin/vmstat/t_vmstat.sh
diff -r1.1 -r1.2 src/tests/usr.bin/xlint/lint1/d_long_double_int.c
diff -r1.4 -r1.5 src/tests/usr.bin/xlint/lint1/t_integration.sh

cvs diff -r1.7 -r1.8 src/tests/lib/libc/sys/t_kevent.c (expand / switch to unified diff)

--- src/tests/lib/libc/sys/t_kevent.c 2015/02/05 13:55:37 1.7
+++ src/tests/lib/libc/sys/t_kevent.c 2020/06/25 11:12:03 1.8
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: t_kevent.c,v 1.7 2015/02/05 13:55:37 isaki Exp $ */ 1/* $NetBSD: t_kevent.c,v 1.8 2020/06/25 11:12:03 jruoho Exp $ */
2 2
3/*- 3/*-
4 * Copyright (c) 2011 The NetBSD Foundation, Inc. 4 * Copyright (c) 2011 The NetBSD Foundation, Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * This code is derived from software contributed to The NetBSD Foundatiom 7 * This code is derived from software contributed to The NetBSD Foundatiom
8 * by Christos Zoulas. 8 * by Christos Zoulas.
9 * 9 *
10 * Redistribution and use in source and binary forms, with or without 10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions 11 * modification, are permitted provided that the following conditions
12 * are met: 12 * are met:
13 * 1. Redistributions of source code must retain the above copyright 13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer. 14 * notice, this list of conditions and the following disclaimer.
@@ -19,27 +19,27 @@ @@ -19,27 +19,27 @@
19 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 19 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 20 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 21 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 23 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 24 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 25 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 27 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 * POSSIBILITY OF SUCH DAMAGE. 29 * POSSIBILITY OF SUCH DAMAGE.
30 */ 30 */
31#include <sys/cdefs.h> 31#include <sys/cdefs.h>
32__RCSID("$NetBSD: t_kevent.c,v 1.7 2015/02/05 13:55:37 isaki Exp $"); 32__RCSID("$NetBSD: t_kevent.c,v 1.8 2020/06/25 11:12:03 jruoho Exp $");
33 33
34#include <sys/types.h> 34#include <sys/types.h>
35#include <sys/event.h> 35#include <sys/event.h>
36 36
37#include <atf-c.h> 37#include <atf-c.h>
38#include <errno.h> 38#include <errno.h>
39#include <time.h> 39#include <time.h>
40#include <stdio.h> 40#include <stdio.h>
41#include <stdlib.h> 41#include <stdlib.h>
42#include <string.h> 42#include <string.h>
43#include <unistd.h> 43#include <unistd.h>
44#include <fcntl.h> 44#include <fcntl.h>
45#include <err.h> 45#include <err.h>
@@ -75,27 +75,27 @@ ATF_TC_HEAD(kqueue_desc_passing, tc) @@ -75,27 +75,27 @@ ATF_TC_HEAD(kqueue_desc_passing, tc)
75} 75}
76 76
77ATF_TC_BODY(kqueue_desc_passing, tc) 77ATF_TC_BODY(kqueue_desc_passing, tc)
78{ 78{
79 pid_t child; 79 pid_t child;
80 int s[2], storage, status, kq; 80 int s[2], storage, status, kq;
81 struct cmsghdr *msg; 81 struct cmsghdr *msg;
82 struct iovec iov; 82 struct iovec iov;
83 struct msghdr m; 83 struct msghdr m;
84 struct kevent ev; 84 struct kevent ev;
85 85
86 ATF_REQUIRE((kq = kqueue()) != -1); 86 ATF_REQUIRE((kq = kqueue()) != -1);
87 87
88 // atf_tc_skip("crashes kernel (PR 46463)"); 88 // atf_tc_skip("crashes kernel (PR kern/46463)");
89 89
90 ATF_REQUIRE(socketpair(AF_LOCAL, SOCK_STREAM, 0, s) != -1); 90 ATF_REQUIRE(socketpair(AF_LOCAL, SOCK_STREAM, 0, s) != -1);
91 msg = malloc(CMSG_SPACE(sizeof(int))); 91 msg = malloc(CMSG_SPACE(sizeof(int)));
92 m.msg_iov = &iov; 92 m.msg_iov = &iov;
93 m.msg_iovlen = 1; 93 m.msg_iovlen = 1;
94 m.msg_name = NULL; 94 m.msg_name = NULL;
95 m.msg_namelen = 0; 95 m.msg_namelen = 0;
96 m.msg_control = msg; 96 m.msg_control = msg;
97 m.msg_controllen = CMSG_SPACE(sizeof(int)); 97 m.msg_controllen = CMSG_SPACE(sizeof(int));
98 98
99 child = fork(); 99 child = fork();
100 if (child == 0) { 100 if (child == 0) {
101 close(s[0]); 101 close(s[0]);

cvs diff -r1.1 -r1.2 src/tests/lib/libm/t_hypot.c (expand / switch to unified diff)

--- src/tests/lib/libm/t_hypot.c 2016/01/24 20:26:47 1.1
+++ src/tests/lib/libm/t_hypot.c 2020/06/25 11:12:03 1.2
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: t_hypot.c,v 1.1 2016/01/24 20:26:47 gson Exp $ */ 1/* $NetBSD: t_hypot.c,v 1.2 2020/06/25 11:12:03 jruoho Exp $ */
2 2
3/*- 3/*-
4 * Copyright (c) 2016 The NetBSD Foundation, Inc. 4 * Copyright (c) 2016 The NetBSD Foundation, Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer. 11 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright 12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the 13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution. 14 * documentation and/or other materials provided with the distribution.
@@ -49,27 +49,27 @@ ATF_TC_HEAD(hypotf_integer, tc) @@ -49,27 +49,27 @@ ATF_TC_HEAD(hypotf_integer, tc)
49 atf_tc_set_md_var(tc, "descr", "Test hypotf with integer args"); 49 atf_tc_set_md_var(tc, "descr", "Test hypotf with integer args");
50} 50}
51 51
52ATF_TC_BODY(hypotf_integer, tc) 52ATF_TC_BODY(hypotf_integer, tc)
53{ 53{
54 volatile float a = 5; 54 volatile float a = 5;
55 volatile float b = 12; 55 volatile float b = 12;
56 ATF_CHECK(hypotf(a, b) == 13.0f); 56 ATF_CHECK(hypotf(a, b) == 13.0f);
57} 57}
58 58
59ATF_TC(pr50698); 59ATF_TC(pr50698);
60ATF_TC_HEAD(pr50698, tc) 60ATF_TC_HEAD(pr50698, tc)
61{ 61{
62 atf_tc_set_md_var(tc, "descr", "Check for the bug of PR 50698"); 62 atf_tc_set_md_var(tc, "descr", "Check for the bug of PR lib/50698");
63} 63}
64 64
65ATF_TC_BODY(pr50698, tc) 65ATF_TC_BODY(pr50698, tc)
66{ 66{
67 volatile float a = 1e-18f; 67 volatile float a = 1e-18f;
68 float val = hypotf(a, a); 68 float val = hypotf(a, a);
69 ATF_CHECK(!isinf(val)); 69 ATF_CHECK(!isinf(val));
70 ATF_CHECK(!isnan(val)); 70 ATF_CHECK(!isnan(val));
71} 71}
72 72
73ATF_TP_ADD_TCS(tp) 73ATF_TP_ADD_TCS(tp)
74{ 74{
75 75

cvs diff -r1.2 -r1.3 src/tests/usr.bin/gdb/t_regress.sh (expand / switch to unified diff)

--- src/tests/usr.bin/gdb/t_regress.sh 2019/06/07 19:05:15 1.2
+++ src/tests/usr.bin/gdb/t_regress.sh 2020/06/25 11:12:03 1.3
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: t_regress.sh,v 1.2 2019/06/07 19:05:15 gson Exp $ 1# $NetBSD: t_regress.sh,v 1.3 2020/06/25 11:12:03 jruoho Exp $
2# 2#
3# Copyright (c) 2016 The NetBSD Foundation, Inc. 3# Copyright (c) 2016 The NetBSD Foundation, Inc.
4# All rights reserved. 4# All rights reserved.
5# 5#
6# Redistribution and use in source and binary forms, with or without 6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions 7# modification, are permitted provided that the following conditions
8# are met: 8# are met:
9# 1. Redistributions of source code must retain the above copyright 9# 1. Redistributions of source code must retain the above copyright
10# notice, this list of conditions and the following disclaimer. 10# notice, this list of conditions and the following disclaimer.
11# 2. Redistributions in binary form must reproduce the above copyright 11# 2. Redistributions in binary form must reproduce the above copyright
12# notice, this list of conditions and the following disclaimer in the 12# notice, this list of conditions and the following disclaimer in the
13# documentation and/or other materials provided with the distribution. 13# documentation and/or other materials provided with the distribution.
14# 14#
@@ -17,75 +17,72 @@ @@ -17,75 +17,72 @@
17# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 17# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
18# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 18# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
19# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 19# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
20# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 20# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
21# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 21# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
22# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 22# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
23# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 23# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
24# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 24# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
25# POSSIBILITY OF SUCH DAMAGE. 25# POSSIBILITY OF SUCH DAMAGE.
26# 26#
27 27
28# Regression tests for some GDB PRs 28# Regression tests for some GDB PRs
29 29
30# PR 47430 
31 
32atf_test_case threads 30atf_test_case threads
33threads_head() { 31threads_head() {
34 atf_set "descr" "Test that gdb works with threaded programs" 32 atf_set "descr" "Test that gdb works with " \
 33 "threaded programs (PR bin/47430)"
35 atf_set "require.progs" "gdb" 34 atf_set "require.progs" "gdb"
36} 35}
37threads_body() { 36threads_body() {
38 # Dig at an unused IP address so that dig fails the 37 # Dig at an unused IP address so that dig fails the
39 # same way on machines with Internet connectivity 38 # same way on machines with Internet connectivity
40 # as on those without. 39 # as on those without.
41 cat <<EOF >test.gdb 40 cat <<EOF >test.gdb
42run +time=1 +tries=1 @127.0.0.177 41run +time=1 +tries=1 @127.0.0.177
43cont 42cont
44cont 43cont
45cont 44cont
46cont 45cont
47cont 46cont
48EOF 47EOF
49 gdb --batch -x test.gdb dig >gdb.out 48 gdb --batch -x test.gdb dig >gdb.out
50 atf_check -s exit:1 -o ignore -e ignore grep "Program received signal SIGTRAP" gdb.out 49 atf_check -s exit:1 -o ignore -e ignore grep "Program received signal SIGTRAP" gdb.out
51} 50}
52 51
53# PR 48250 
54 
55atf_test_case pie 52atf_test_case pie
56pie_head() { 53pie_head() {
57 atf_set "descr" "Test that gdb works with PIE executables" 54 atf_set "descr" "Test that gdb works with " \
 55 "PIE executables (PR bin/48250)"
58 atf_set "require.progs" "cc gdb" 56 atf_set "require.progs" "cc gdb"
59} 57}
60pie_body() { 58pie_body() {
61 cat <<\EOF >test.c 59 cat <<\EOF >test.c
62#include <stdio.h> 60#include <stdio.h>
63int main(int argc, char **argv) { printf ("hello\n"); return 0; } 61int main(int argc, char **argv) { printf ("hello\n"); return 0; }
64EOF 62EOF
65 cc -fpie -pie -g test.c -o test 63 cc -fpie -pie -g test.c -o test
66 cat <<EOF >test.gdb 64 cat <<EOF >test.gdb
67break main 65break main
68run 66run
69EOF 67EOF
70 gdb --batch -x test.gdb ./test >gdb.out 2>&1 68 gdb --batch -x test.gdb ./test >gdb.out 2>&1
71 atf_check -s exit:1 -o ignore -e ignore grep "annot access memory" gdb.out 69 atf_check -s exit:1 -o ignore -e ignore grep "annot access memory" gdb.out
72} 70}
73 71
74# PR 54154 
75 
76atf_test_case xml 72atf_test_case xml
77xml_head() { 73xml_head() {
78 atf_set "descr" "Test that gdb was built with XML support" 74 atf_set "descr" "Test that gdb was built " \
 75 "with XML support (PR bin/54154)"
79 atf_set "require.progs" "gdb" 76 atf_set "require.progs" "gdb"
80} 77}
81xml_body() { 78xml_body() {
82 cat <<\EOF >target.xml 79 cat <<\EOF >target.xml
83<target version="1.0"> 80<target version="1.0">
84 <architecture>i386:x86-64</architecture> 81 <architecture>i386:x86-64</architecture>
85</target> 82</target>
86EOF 83EOF
87 cat <<EOF >test.gdb 84 cat <<EOF >test.gdb
88set tdesc filename "target.xml" 85set tdesc filename "target.xml"
89EOF 86EOF
90 gdb --batch -x test.gdb >gdb.out 2>&1 87 gdb --batch -x test.gdb >gdb.out 2>&1
91 atf_check -s exit:1 -o ignore -e ignore grep "Can not parse XML" gdb.out 88 atf_check -s exit:1 -o ignore -e ignore grep "Can not parse XML" gdb.out

cvs diff -r1.1 -r1.2 src/tests/usr.bin/vmstat/t_vmstat.sh (expand / switch to unified diff)

--- src/tests/usr.bin/vmstat/t_vmstat.sh 2014/01/07 16:47:13 1.1
+++ src/tests/usr.bin/vmstat/t_vmstat.sh 2020/06/25 11:12:03 1.2
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: t_vmstat.sh,v 1.1 2014/01/07 16:47:13 gson Exp $ 1# $NetBSD: t_vmstat.sh,v 1.2 2020/06/25 11:12:03 jruoho Exp $
2# 2#
3# Copyright (c) 2013 The NetBSD Foundation, Inc. 3# Copyright (c) 2013 The NetBSD Foundation, Inc.
4# All rights reserved. 4# All rights reserved.
5# 5#
6# Redistribution and use in source and binary forms, with or without 6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions 7# modification, are permitted provided that the following conditions
8# are met: 8# are met:
9# 1. Redistributions of source code must retain the above copyright 9# 1. Redistributions of source code must retain the above copyright
10# notice, this list of conditions and the following disclaimer. 10# notice, this list of conditions and the following disclaimer.
11# 2. Redistributions in binary form must reproduce the above copyright 11# 2. Redistributions in binary form must reproduce the above copyright
12# notice, this list of conditions and the following disclaimer in the 12# notice, this list of conditions and the following disclaimer in the
13# documentation and/or other materials provided with the distribution. 13# documentation and/or other materials provided with the distribution.
14# 14#
@@ -17,32 +17,34 @@ @@ -17,32 +17,34 @@
17# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 17# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
18# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 18# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
19# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 19# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
20# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 20# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
21# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 21# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
22# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 22# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
23# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 23# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
24# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 24# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
25# POSSIBILITY OF SUCH DAMAGE. 25# POSSIBILITY OF SUCH DAMAGE.
26# 26#
27 27
28atf_test_case default 28atf_test_case default
29default_head() { 29default_head() {
30 atf_set "descr" "Test that vmstat(1) returns success when run with no arguments" 30 atf_set "descr" "Test that vmstat(1) returns " \
 31 "success when run with no arguments"
31} 32}
32default_body() { 33default_body() {
33 atf_check -s exit:0 -o ignore -e empty vmstat 34 atf_check -s exit:0 -o ignore -e empty vmstat
34} 35}
35 36
36atf_test_case opt_s 37atf_test_case opt_s
37opt_s_head() { 38opt_s_head() {
38 atf_set "descr" "Test that vmstat(1) returns success when run with -s (PR 44518)" 39 atf_set "descr" "Test that vmstat(1) returns " \
 40 "success when run with -s (PR bin/44518)"
39} 41}
40opt_s_body() { 42opt_s_body() {
41 atf_check -s exit:0 -o ignore -e empty vmstat -s 43 atf_check -s exit:0 -o ignore -e empty vmstat -s
42} 44}
43 45
44atf_init_test_cases() 46atf_init_test_cases()
45{ 47{
46 atf_add_test_case default 48 atf_add_test_case default
47 atf_add_test_case opt_s 49 atf_add_test_case opt_s
48} 50}

cvs diff -r1.1 -r1.2 src/tests/usr.bin/xlint/lint1/d_long_double_int.c (expand / switch to unified diff)

--- src/tests/usr.bin/xlint/lint1/d_long_double_int.c 2012/03/17 16:33:16 1.1
+++ src/tests/usr.bin/xlint/lint1/d_long_double_int.c 2020/06/25 11:12:03 1.2
@@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
1/* PR 39639: writing "long double" gave "long int" */ 1/* PR bin/39639: writing "long double" gave "long int" */
2 2
3int 3int
4fail(long double *a, long int *b) 4fail(long double *a, long int *b)
5{ 5{
6 return a == b; 6 return a == b;
7} 7}

cvs diff -r1.4 -r1.5 src/tests/usr.bin/xlint/lint1/t_integration.sh (expand / switch to unified diff)

--- src/tests/usr.bin/xlint/lint1/t_integration.sh 2014/04/21 19:10:41 1.4
+++ src/tests/usr.bin/xlint/lint1/t_integration.sh 2020/06/25 11:12:03 1.5
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: t_integration.sh,v 1.4 2014/04/21 19:10:41 christos Exp $ 1# $NetBSD: t_integration.sh,v 1.5 2020/06/25 11:12:03 jruoho Exp $
2# 2#
3# Copyright (c) 2008, 2010 The NetBSD Foundation, Inc. 3# Copyright (c) 2008, 2010 The NetBSD Foundation, Inc.
4# All rights reserved. 4# All rights reserved.
5# 5#
6# Redistribution and use in source and binary forms, with or without 6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions 7# modification, are permitted provided that the following conditions
8# are met: 8# are met:
9# 1. Redistributions of source code must retain the above copyright 9# 1. Redistributions of source code must retain the above copyright
10# notice, this list of conditions and the following disclaimer. 10# notice, this list of conditions and the following disclaimer.
11# 2. Redistributions in binary form must reproduce the above copyright 11# 2. Redistributions in binary form must reproduce the above copyright
12# notice, this list of conditions and the following disclaimer in the 12# notice, this list of conditions and the following disclaimer in the
13# documentation and/or other materials provided with the distribution. 13# documentation and/or other materials provided with the distribution.
14# 14#
@@ -112,21 +112,21 @@ test_case check_invalid constant_conv2 " @@ -112,21 +112,21 @@ test_case check_invalid constant_conv2 "
112 "constant conversion in argument lists" 112 "constant conversion in argument lists"
113 113
114test_case check_invalid type_conv1 "Checks failing on information-losing" \ 114test_case check_invalid type_conv1 "Checks failing on information-losing" \
115 "type conversion in argument lists" 115 "type conversion in argument lists"
116test_case check_invalid type_conv2 "Checks failing on information-losing" \ 116test_case check_invalid type_conv2 "Checks failing on information-losing" \
117 "type conversion in argument lists" 117 "type conversion in argument lists"
118test_case check_invalid type_conv3 "Checks failing on information-losing" \ 118test_case check_invalid type_conv3 "Checks failing on information-losing" \
119 "type conversion in argument lists" 119 "type conversion in argument lists"
120 120
121test_case check_invalid incorrect_array_size "Checks failing on incorrect" \ 121test_case check_invalid incorrect_array_size "Checks failing on incorrect" \
122 "array sizes" 122 "array sizes"
123 123
124test_case check_invalid long_double_int "Checks for confusion of 'long" \ 124test_case check_invalid long_double_int "Checks for confusion of 'long" \
125 "double' with 'long int'; PR 39639" 125 "double' with 'long int'; PR bin/39639"
126 126
127atf_init_test_cases() 127atf_init_test_cases()
128{ 128{
129 for name in ${Names}; do 129 for name in ${Names}; do
130 atf_add_test_case ${name} 130 atf_add_test_case ${name}
131 done 131 done
132} 132}