Reference PRs consistently.diff -r1.11 -r1.12 src/tests/dev/audio/audiotest.c
(jruoho)
--- src/tests/dev/audio/audiotest.c 2020/05/01 05:45:57 1.11
+++ src/tests/dev/audio/audiotest.c 2020/06/26 07:50:12 1.12
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: audiotest.c,v 1.11 2020/05/01 05:45:57 isaki Exp $ */ | 1 | /* $NetBSD: audiotest.c,v 1.12 2020/06/26 07:50:12 jruoho Exp $ */ | |
2 | 2 | |||
3 | /* | 3 | /* | |
4 | * Copyright (C) 2019 Tetsuya Isaki. All rights reserved. | 4 | * Copyright (C) 2019 Tetsuya Isaki. 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 | * | |
@@ -16,27 +16,27 @@ | @@ -16,27 +16,27 @@ | |||
16 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | 16 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | |
17 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. | 17 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. | |
18 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, | 18 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, | |
19 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, | 19 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, | |
20 | * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | 20 | * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | |
21 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED | 21 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED | |
22 | * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | 22 | * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | |
23 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | 23 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | |
24 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 24 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |
25 | * SUCH DAMAGE. | 25 | * SUCH DAMAGE. | |
26 | */ | 26 | */ | |
27 | 27 | |||
28 | #include <sys/cdefs.h> | 28 | #include <sys/cdefs.h> | |
29 | __RCSID("$NetBSD: audiotest.c,v 1.11 2020/05/01 05:45:57 isaki Exp $"); | 29 | __RCSID("$NetBSD: audiotest.c,v 1.12 2020/06/26 07:50:12 jruoho Exp $"); | |
30 | 30 | |||
31 | #include <errno.h> | 31 | #include <errno.h> | |
32 | #include <fcntl.h> | 32 | #include <fcntl.h> | |
33 | #define __STDC_FORMAT_MACROS /* for PRIx64 */ | 33 | #define __STDC_FORMAT_MACROS /* for PRIx64 */ | |
34 | #include <inttypes.h> | 34 | #include <inttypes.h> | |
35 | #include <pthread.h> | 35 | #include <pthread.h> | |
36 | #include <stdarg.h> | 36 | #include <stdarg.h> | |
37 | #include <stdbool.h> | 37 | #include <stdbool.h> | |
38 | #include <stdio.h> | 38 | #include <stdio.h> | |
39 | #include <stdlib.h> | 39 | #include <stdlib.h> | |
40 | #include <string.h> | 40 | #include <string.h> | |
41 | #include <unistd.h> | 41 | #include <unistd.h> | |
42 | #include <util.h> | 42 | #include <util.h> | |
@@ -710,27 +710,27 @@ consumer_thread(void *arg) | @@ -710,27 +710,27 @@ consumer_thread(void *arg) | |||
710 | 710 | |||
711 | /* throw away data anyway */ | 711 | /* throw away data anyway */ | |
712 | for (;;) { | 712 | for (;;) { | |
713 | r = read(padfd, buf, sizeof(buf)); | 713 | r = read(padfd, buf, sizeof(buf)); | |
714 | if (r < 1) | 714 | if (r < 1) | |
715 | break; | 715 | break; | |
716 | } | 716 | } | |
717 | 717 | |||
718 | pthread_exit(NULL); | 718 | pthread_exit(NULL); | |
719 | } | 719 | } | |
720 | 720 | |||
721 | /* | 721 | /* | |
722 | * XXX | 722 | * XXX | |
723 | * Closing pad descriptor before audio descriptor causes panic (kern/54427). | 723 | * Closing pad descriptor before audio descriptor causes panic (PR kern/54427). | |
724 | * To avoid this, close non-pad descriptor first using atexit(3) for now. | 724 | * To avoid this, close non-pad descriptor first using atexit(3) for now. | |
725 | * This is just a workaround and this function should be removed. | 725 | * This is just a workaround and this function should be removed. | |
726 | */ | 726 | */ | |
727 | void cleanup_audiofd() | 727 | void cleanup_audiofd() | |
728 | { | 728 | { | |
729 | int fd; | 729 | int fd; | |
730 | 730 | |||
731 | for (fd = 3; fd <= maxfd; fd++) { | 731 | for (fd = 3; fd <= maxfd; fd++) { | |
732 | if (fd != padfd) | 732 | if (fd != padfd) | |
733 | close(fd); | 733 | close(fd); | |
734 | } | 734 | } | |
735 | maxfd = 3; | 735 | maxfd = 3; | |
736 | } | 736 | } |
--- src/tests/fs/nullfs/t_basic.c 2017/01/13 21:30:40 1.4
+++ src/tests/fs/nullfs/t_basic.c 2020/06/26 07:50:12 1.5
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: t_basic.c,v 1.4 2017/01/13 21:30:40 christos Exp $ */ | 1 | /* $NetBSD: t_basic.c,v 1.5 2020/06/26 07:50:12 jruoho Exp $ */ | |
2 | 2 | |||
3 | #include <sys/types.h> | 3 | #include <sys/types.h> | |
4 | #include <sys/mount.h> | 4 | #include <sys/mount.h> | |
5 | 5 | |||
6 | #include <atf-c.h> | 6 | #include <atf-c.h> | |
7 | #include <err.h> | 7 | #include <err.h> | |
8 | #include <errno.h> | 8 | #include <errno.h> | |
9 | #include <fcntl.h> | 9 | #include <fcntl.h> | |
10 | #include <stdio.h> | 10 | #include <stdio.h> | |
11 | #include <unistd.h> | 11 | #include <unistd.h> | |
12 | #include <string.h> | 12 | #include <string.h> | |
13 | #include <stdlib.h> | 13 | #include <stdlib.h> | |
14 | 14 | |||
@@ -123,31 +123,31 @@ ATF_TC_BODY(basic, tc) | @@ -123,31 +123,31 @@ ATF_TC_BODY(basic, tc) | |||
123 | || errno != ENOENT) { | 123 | || errno != ENOENT) { | |
124 | atf_tc_fail("stat kiekko should return ENOENT, got %d", error); | 124 | atf_tc_fail("stat kiekko should return ENOENT, got %d", error); | |
125 | } | 125 | } | |
126 | 126 | |||
127 | /* done */ | 127 | /* done */ | |
128 | } | 128 | } | |
129 | 129 | |||
130 | ATF_TC(twistymount); | 130 | ATF_TC(twistymount); | |
131 | ATF_TC_HEAD(twistymount, tc) | 131 | ATF_TC_HEAD(twistymount, tc) | |
132 | { | 132 | { | |
133 | 133 | |||
134 | /* this is expected to fail until the PR is fixed */ | 134 | /* this is expected to fail until the PR is fixed */ | |
135 | atf_tc_set_md_var(tc, "descr", "\"recursive\" mounts deadlock" | 135 | atf_tc_set_md_var(tc, "descr", "\"recursive\" mounts deadlock" | |
136 | " (kern/43439)"); | 136 | " (PR kern/43439)"); | |
137 | } | 137 | } | |
138 | 138 | |||
139 | /* | 139 | /* | |
140 | * Mapping to identifiers in kern/43439: | 140 | * Mapping to identifiers in PR kern/43439: | |
141 | * /td = /home/current/pkgsrc | 141 | * /td = /home/current/pkgsrc | |
142 | * /td/dist = /home/current/pkgsrc/distiles | 142 | * /td/dist = /home/current/pkgsrc/distiles | |
143 | * /mp = /usr/pkgsrc | 143 | * /mp = /usr/pkgsrc | |
144 | * /mp/dist = /usr/pkgsrc/distfiles -- "created" by first null mount | 144 | * /mp/dist = /usr/pkgsrc/distfiles -- "created" by first null mount | |
145 | */ | 145 | */ | |
146 | 146 | |||
147 | ATF_TC_BODY(twistymount, tc) | 147 | ATF_TC_BODY(twistymount, tc) | |
148 | { | 148 | { | |
149 | int mkd = 0; | 149 | int mkd = 0; | |
150 | 150 | |||
151 | rump_init(); | 151 | rump_init(); | |
152 | 152 | |||
153 | if (rump_sys_mkdir("/td", 0777) == -1) | 153 | if (rump_sys_mkdir("/td", 0777) == -1) |
--- src/tests/fs/tmpfs/t_renamerace.c 2017/01/13 21:30:40 1.14
+++ src/tests/fs/tmpfs/t_renamerace.c 2020/06/26 07:50:12 1.15
@@ -1,18 +1,18 @@ | @@ -1,18 +1,18 @@ | |||
1 | /* $NetBSD: t_renamerace.c,v 1.14 2017/01/13 21:30:40 christos Exp $ */ | 1 | /* $NetBSD: t_renamerace.c,v 1.15 2020/06/26 07:50:12 jruoho Exp $ */ | |
2 | 2 | |||
3 | /* | 3 | /* | |
4 | * Modified for rump and atf from a program supplied | 4 | * Modified for rump and atf from a program supplied | |
5 | * by Nicolas Joly in kern/40948 | 5 | * by Nicolas Joly in PR kern/40948 | |
6 | */ | 6 | */ | |
7 | 7 | |||
8 | #include <sys/types.h> | 8 | #include <sys/types.h> | |
9 | #include <sys/mount.h> | 9 | #include <sys/mount.h> | |
10 | #include <sys/utsname.h> | 10 | #include <sys/utsname.h> | |
11 | 11 | |||
12 | #include <atf-c.h> | 12 | #include <atf-c.h> | |
13 | #include <errno.h> | 13 | #include <errno.h> | |
14 | #include <fcntl.h> | 14 | #include <fcntl.h> | |
15 | #include <pthread.h> | 15 | #include <pthread.h> | |
16 | #include <stdio.h> | 16 | #include <stdio.h> | |
17 | #include <stdlib.h> | 17 | #include <stdlib.h> | |
18 | #include <string.h> | 18 | #include <string.h> |
--- src/tests/kernel/t_extattrctl.c 2010/05/21 16:47:45 1.1
+++ src/tests/kernel/t_extattrctl.c 2020/06/26 07:50:11 1.2
@@ -1,25 +1,25 @@ | @@ -1,25 +1,25 @@ | |||
1 | #include <sys/types.h> | 1 | #include <sys/types.h> | |
2 | 2 | |||
3 | #include <rump/rump.h> | 3 | #include <rump/rump.h> | |
4 | #include <rump/rump_syscalls.h> | 4 | #include <rump/rump_syscalls.h> | |
5 | 5 | |||
6 | #include <atf-c.h> | 6 | #include <atf-c.h> | |
7 | 7 | |||
8 | ATF_TC(extattrctl_namei); | 8 | ATF_TC(extattrctl_namei); | |
9 | ATF_TC_HEAD(extattrctl_namei, tc) | 9 | ATF_TC_HEAD(extattrctl_namei, tc) | |
10 | { | 10 | { | |
11 | 11 | |||
12 | atf_tc_set_md_var(tc, "descr", "extattrctl namei safety (kern/43328)"); | 12 | atf_tc_set_md_var(tc, "descr", "extattrctl namei safety (PR kern/43328)"); | |
13 | } | 13 | } | |
14 | 14 | |||
15 | ATF_TC_BODY(extattrctl_namei, tc) | 15 | ATF_TC_BODY(extattrctl_namei, tc) | |
16 | { | 16 | { | |
17 | 17 | |||
18 | rump_init(); | 18 | rump_init(); | |
19 | 19 | |||
20 | rump_sys_extattrctl("/anyfile", 0, "/", 0, 0); | 20 | rump_sys_extattrctl("/anyfile", 0, "/", 0, 0); | |
21 | } | 21 | } | |
22 | 22 | |||
23 | ATF_TP_ADD_TCS(tp) | 23 | ATF_TP_ADD_TCS(tp) | |
24 | { | 24 | { | |
25 | ATF_TP_ADD_TC(tp, extattrctl_namei); | 25 | ATF_TP_ADD_TC(tp, extattrctl_namei); |
--- src/tests/lib/libc/sys/t_mmap.c 2017/05/23 13:04:29 1.13
+++ src/tests/lib/libc/sys/t_mmap.c 2020/06/26 07:50:11 1.14
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: t_mmap.c,v 1.13 2017/05/23 13:04:29 christos Exp $ */ | 1 | /* $NetBSD: t_mmap.c,v 1.14 2020/06/26 07:50:11 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 Foundation | 7 | * This code is derived from software contributed to The NetBSD Foundation | |
8 | * by Jukka Ruohonen. | 8 | * by Jukka Ruohonen. | |
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. | |
@@ -45,27 +45,27 @@ | @@ -45,27 +45,27 @@ | |||
45 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND | 45 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND | |
46 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | 46 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | |
47 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | 47 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | |
48 | * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE | 48 | * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE | |
49 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | 49 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | |
50 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | 50 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | |
51 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | 51 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |
52 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | 52 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | |
53 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | 53 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | |
54 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 54 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |
55 | * SUCH DAMAGE. | 55 | * SUCH DAMAGE. | |
56 | */ | 56 | */ | |
57 | #include <sys/cdefs.h> | 57 | #include <sys/cdefs.h> | |
58 | __RCSID("$NetBSD: t_mmap.c,v 1.13 2017/05/23 13:04:29 christos Exp $"); | 58 | __RCSID("$NetBSD: t_mmap.c,v 1.14 2020/06/26 07:50:11 jruoho Exp $"); | |
59 | 59 | |||
60 | #include <sys/param.h> | 60 | #include <sys/param.h> | |
61 | #include <sys/disklabel.h> | 61 | #include <sys/disklabel.h> | |
62 | #include <sys/mman.h> | 62 | #include <sys/mman.h> | |
63 | #include <sys/stat.h> | 63 | #include <sys/stat.h> | |
64 | #include <sys/socket.h> | 64 | #include <sys/socket.h> | |
65 | #include <sys/sysctl.h> | 65 | #include <sys/sysctl.h> | |
66 | #include <sys/wait.h> | 66 | #include <sys/wait.h> | |
67 | 67 | |||
68 | #include <atf-c.h> | 68 | #include <atf-c.h> | |
69 | #include <errno.h> | 69 | #include <errno.h> | |
70 | #include <fcntl.h> | 70 | #include <fcntl.h> | |
71 | #include <signal.h> | 71 | #include <signal.h> | |
@@ -161,27 +161,28 @@ ATF_TC_HEAD(mmap_block, tc) | @@ -161,27 +161,28 @@ ATF_TC_HEAD(mmap_block, tc) | |||
161 | { | 161 | { | |
162 | atf_tc_set_md_var(tc, "descr", "Test mmap(2) with a block device"); | 162 | atf_tc_set_md_var(tc, "descr", "Test mmap(2) with a block device"); | |
163 | atf_tc_set_md_var(tc, "require.user", "root"); | 163 | atf_tc_set_md_var(tc, "require.user", "root"); | |
164 | } | 164 | } | |
165 | 165 | |||
166 | ATF_TC_BODY(mmap_block, tc) | 166 | ATF_TC_BODY(mmap_block, tc) | |
167 | { | 167 | { | |
168 | static const int mib[] = { CTL_HW, HW_DISKNAMES }; | 168 | static const int mib[] = { CTL_HW, HW_DISKNAMES }; | |
169 | static const unsigned int miblen = __arraycount(mib); | 169 | static const unsigned int miblen = __arraycount(mib); | |
170 | char *map, *dk, *drives, dev[PATH_MAX]; | 170 | char *map, *dk, *drives, dev[PATH_MAX]; | |
171 | size_t len; | 171 | size_t len; | |
172 | int fd = -1; | 172 | int fd = -1; | |
173 | 173 | |||
174 | atf_tc_skip("The test case causes a panic (PR kern/38889, kern/46592)"); | 174 | atf_tc_skip("The test case causes a panic " \ | |
175 | "(PR kern/38889, PR kern/46592)"); | |||
175 | 176 | |||
176 | ATF_REQUIRE(sysctl(mib, miblen, NULL, &len, NULL, 0) == 0); | 177 | ATF_REQUIRE(sysctl(mib, miblen, NULL, &len, NULL, 0) == 0); | |
177 | drives = malloc(len); | 178 | drives = malloc(len); | |
178 | ATF_REQUIRE(drives != NULL); | 179 | ATF_REQUIRE(drives != NULL); | |
179 | ATF_REQUIRE(sysctl(mib, miblen, drives, &len, NULL, 0) == 0); | 180 | ATF_REQUIRE(sysctl(mib, miblen, drives, &len, NULL, 0) == 0); | |
180 | for (dk = strtok(drives, " "); dk != NULL; dk = strtok(NULL, " ")) { | 181 | for (dk = strtok(drives, " "); dk != NULL; dk = strtok(NULL, " ")) { | |
181 | if (strncmp(dk, "dk", 2) == 0) | 182 | if (strncmp(dk, "dk", 2) == 0) | |
182 | snprintf(dev, sizeof(dev), _PATH_DEV "%s", dk); | 183 | snprintf(dev, sizeof(dev), _PATH_DEV "%s", dk); | |
183 | else | 184 | else | |
184 | snprintf(dev, sizeof(dev), _PATH_DEV "%s%c", dk, | 185 | snprintf(dev, sizeof(dev), _PATH_DEV "%s%c", dk, | |
185 | 'a' + RAW_PART); | 186 | 'a' + RAW_PART); | |
186 | fprintf(stderr, "trying: %s\n", dev); | 187 | fprintf(stderr, "trying: %s\n", dev); | |
187 | 188 |
--- src/tests/lib/libc/sys/t_pipe.c 2019/12/27 09:25:58 1.6
+++ src/tests/lib/libc/sys/t_pipe.c 2020/06/26 07:50:11 1.7
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: t_pipe.c,v 1.6 2019/12/27 09:25:58 msaitoh Exp $ */ | 1 | /* $NetBSD: t_pipe.c,v 1.7 2020/06/26 07:50:11 jruoho Exp $ */ | |
2 | 2 | |||
3 | /*- | 3 | /*- | |
4 | * Copyright (c) 2001, 2008 The NetBSD Foundation, Inc. | 4 | * Copyright (c) 2001, 2008 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. | |
@@ -19,27 +19,27 @@ | @@ -19,27 +19,27 @@ | |||
19 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS | 19 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS | |
20 | * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | 20 | * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | |
21 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | 21 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | |
22 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | 22 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | |
23 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | 23 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | |
24 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | 24 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | |
25 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | 25 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | |
26 | * POSSIBILITY OF SUCH DAMAGE. | 26 | * POSSIBILITY OF SUCH DAMAGE. | |
27 | */ | 27 | */ | |
28 | 28 | |||
29 | #include <sys/cdefs.h> | 29 | #include <sys/cdefs.h> | |
30 | __COPYRIGHT("@(#) Copyright (c) 2008\ | 30 | __COPYRIGHT("@(#) Copyright (c) 2008\ | |
31 | The NetBSD Foundation, inc. All rights reserved."); | 31 | The NetBSD Foundation, inc. All rights reserved."); | |
32 | __RCSID("$NetBSD: t_pipe.c,v 1.6 2019/12/27 09:25:58 msaitoh Exp $"); | 32 | __RCSID("$NetBSD: t_pipe.c,v 1.7 2020/06/26 07:50:11 jruoho Exp $"); | |
33 | 33 | |||
34 | #include <sys/types.h> | 34 | #include <sys/types.h> | |
35 | #include <sys/wait.h> | 35 | #include <sys/wait.h> | |
36 | 36 | |||
37 | #include <errno.h> | 37 | #include <errno.h> | |
38 | #include <fcntl.h> | 38 | #include <fcntl.h> | |
39 | #include <poll.h> | 39 | #include <poll.h> | |
40 | #include <sched.h> | 40 | #include <sched.h> | |
41 | #include <signal.h> | 41 | #include <signal.h> | |
42 | #include <stdio.h> | 42 | #include <stdio.h> | |
43 | #include <stdlib.h> | 43 | #include <stdlib.h> | |
44 | #include <unistd.h> | 44 | #include <unistd.h> | |
45 | 45 | |||
@@ -60,27 +60,27 @@ sighand(int sig) | @@ -60,27 +60,27 @@ sighand(int sig) | |||
60 | if (sig == SIGALRM) { | 60 | if (sig == SIGALRM) { | |
61 | kill(pid, SIGINFO); | 61 | kill(pid, SIGINFO); | |
62 | } | 62 | } | |
63 | if (sig == SIGINFO) { | 63 | if (sig == SIGINFO) { | |
64 | nsiginfo++; | 64 | nsiginfo++; | |
65 | } | 65 | } | |
66 | } | 66 | } | |
67 | 67 | |||
68 | ATF_TC(pipe_restart); | 68 | ATF_TC(pipe_restart); | |
69 | ATF_TC_HEAD(pipe_restart, tc) | 69 | ATF_TC_HEAD(pipe_restart, tc) | |
70 | { | 70 | { | |
71 | atf_tc_set_md_var(tc, "descr", "Checks that writing to pipe " | 71 | atf_tc_set_md_var(tc, "descr", "Checks that writing to pipe " | |
72 | "works correctly after being interrupted and restarted " | 72 | "works correctly after being interrupted and restarted " | |
73 | "(kern/14087)"); | 73 | "(PR kern/14087)"); | |
74 | } | 74 | } | |
75 | 75 | |||
76 | ATF_TC_BODY(pipe_restart, tc) | 76 | ATF_TC_BODY(pipe_restart, tc) | |
77 | { | 77 | { | |
78 | int pp[2], st; | 78 | int pp[2], st; | |
79 | ssize_t sz, todo, done; | 79 | ssize_t sz, todo, done; | |
80 | char *f; | 80 | char *f; | |
81 | sigset_t asigset, osigset, emptysigset; | 81 | sigset_t asigset, osigset, emptysigset; | |
82 | 82 | |||
83 | /* Initialise signal masks */ | 83 | /* Initialise signal masks */ | |
84 | RL(sigemptyset(&emptysigset)); | 84 | RL(sigemptyset(&emptysigset)); | |
85 | RL(sigemptyset(&asigset)); | 85 | RL(sigemptyset(&asigset)); | |
86 | RL(sigaddset(&asigset, SIGINFO)); | 86 | RL(sigaddset(&asigset, SIGINFO)); |
--- src/tests/usr.bin/awk/t_awk.sh 2019/01/19 01:02:12 1.6
+++ src/tests/usr.bin/awk/t_awk.sh 2020/06/26 07:50:11 1.7
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: t_awk.sh,v 1.6 2019/01/19 01:02:12 christos Exp $ | 1 | # $NetBSD: t_awk.sh,v 1.7 2020/06/26 07:50:11 jruoho Exp $ | |
2 | # | 2 | # | |
3 | # Copyright (c) 2012 The NetBSD Foundation, Inc. | 3 | # Copyright (c) 2012 The NetBSD Foundation, Inc. | |
4 | # All rights reserved. | 4 | # All rights reserved. | |
5 | # | 5 | # | |
6 | # This code is derived from software contributed to The NetBSD Foundation | 6 | # This code is derived from software contributed to The NetBSD Foundation | |
7 | # by Christos Zoulas | 7 | # by Christos Zoulas | |
8 | # | 8 | # | |
9 | # Redistribution and use in source and binary forms, with or without | 9 | # Redistribution and use in source and binary forms, with or without | |
10 | # modification, are permitted provided that the following conditions | 10 | # modification, are permitted provided that the following conditions | |
11 | # are met: | 11 | # are met: | |
12 | # 1. Redistributions of source code must retain the above copyright | 12 | # 1. Redistributions of source code must retain the above copyright | |
13 | # notice, this list of conditions and the following disclaimer. | 13 | # notice, this list of conditions and the following disclaimer. | |
14 | # 2. Redistributions in binary form must reproduce the above copyright | 14 | # 2. Redistributions in binary form must reproduce the above copyright | |
@@ -83,27 +83,27 @@ multibyte_head() { | @@ -83,27 +83,27 @@ multibyte_head() { | |||
83 | } | 83 | } | |
84 | 84 | |||
85 | multibyte_body() { | 85 | multibyte_body() { | |
86 | export LANG=en_US.UTF-8 | 86 | export LANG=en_US.UTF-8 | |
87 | 87 | |||
88 | h_check tolower | 88 | h_check tolower | |
89 | h_check toupper | 89 | h_check toupper | |
90 | } | 90 | } | |
91 | 91 | |||
92 | atf_test_case period | 92 | atf_test_case period | |
93 | 93 | |||
94 | period_head() { | 94 | period_head() { | |
95 | atf_set "descr" "Checks that the period character is recognised" \ | 95 | atf_set "descr" "Checks that the period character is recognised" \ | |
96 | "in awk program regardless of locale (bin/42320)" | 96 | "in awk program regardless of locale (PR bin/42320)" | |
97 | } | 97 | } | |
98 | 98 | |||
99 | period_body() { | 99 | period_body() { | |
100 | export LANG=ru_RU.KOI8-R | 100 | export LANG=ru_RU.KOI8-R | |
101 | 101 | |||
102 | h_check period -v x=0.5 | 102 | h_check period -v x=0.5 | |
103 | } | 103 | } | |
104 | 104 | |||
105 | atf_test_case assign_NF | 105 | atf_test_case assign_NF | |
106 | 106 | |||
107 | assign_NF_head() { | 107 | assign_NF_head() { | |
108 | atf_set "descr" 'Checks that assign to NF changes $0 and $n (PR/44063)' | 108 | atf_set "descr" 'Checks that assign to NF changes $0 and $n (PR/44063)' | |
109 | } | 109 | } |