Attach t_exect to ATF tests and distribution Add missing SIGTRAP handler. Assert there that the signal is SIGTRAP as expected and si_code TRAP_TRACE. This test will break on some ports that have dummy or incomplete implementation of exect(2). This test works on amd64 correctly. Sponsored by <The NetBSD Foundation>diff -r1.183 -r1.184 src/distrib/sets/lists/debug/mi
(kamil)
--- src/distrib/sets/lists/debug/mi 2016/12/02 05:54:14 1.183
+++ src/distrib/sets/lists/debug/mi 2016/12/09 06:12:02 1.184
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: mi,v 1.183 2016/12/02 05:54:14 kamil Exp $ | 1 | # $NetBSD: mi,v 1.184 2016/12/09 06:12:02 kamil Exp $ | |
2 | ./etc/mtree/set.debug comp-sys-root | 2 | ./etc/mtree/set.debug comp-sys-root | |
3 | ./usr/lib comp-sys-usr compatdir | 3 | ./usr/lib comp-sys-usr compatdir | |
4 | ./usr/lib/i18n/libBIG5_g.a comp-c-debuglib debuglib,compatfile | 4 | ./usr/lib/i18n/libBIG5_g.a comp-c-debuglib debuglib,compatfile | |
5 | ./usr/lib/i18n/libDECHanyu_g.a comp-c-debuglib debuglib,compatfile | 5 | ./usr/lib/i18n/libDECHanyu_g.a comp-c-debuglib debuglib,compatfile | |
6 | ./usr/lib/i18n/libEUCTW_g.a comp-c-debuglib debuglib,compatfile | 6 | ./usr/lib/i18n/libEUCTW_g.a comp-c-debuglib debuglib,compatfile | |
7 | ./usr/lib/i18n/libEUC_g.a comp-c-debuglib debuglib,compatfile | 7 | ./usr/lib/i18n/libEUC_g.a comp-c-debuglib debuglib,compatfile | |
8 | ./usr/lib/i18n/libGBK2K_g.a comp-c-debuglib debuglib,compatfile | 8 | ./usr/lib/i18n/libGBK2K_g.a comp-c-debuglib debuglib,compatfile | |
9 | ./usr/lib/i18n/libHZ_g.a comp-c-debuglib debuglib,compatfile | 9 | ./usr/lib/i18n/libHZ_g.a comp-c-debuglib debuglib,compatfile | |
10 | ./usr/lib/i18n/libISO2022_g.a comp-c-debuglib debuglib,compatfile | 10 | ./usr/lib/i18n/libISO2022_g.a comp-c-debuglib debuglib,compatfile | |
11 | ./usr/lib/i18n/libJOHAB_g.a comp-c-debuglib debuglib,compatfile | 11 | ./usr/lib/i18n/libJOHAB_g.a comp-c-debuglib debuglib,compatfile | |
12 | ./usr/lib/i18n/libMSKanji_g.a comp-c-debuglib debuglib,compatfile | 12 | ./usr/lib/i18n/libMSKanji_g.a comp-c-debuglib debuglib,compatfile | |
13 | ./usr/lib/i18n/libUES_g.a comp-c-debuglib debuglib,compatfile | 13 | ./usr/lib/i18n/libUES_g.a comp-c-debuglib debuglib,compatfile | |
14 | ./usr/lib/i18n/libUTF1632_g.a comp-c-debuglib debuglib,compatfile | 14 | ./usr/lib/i18n/libUTF1632_g.a comp-c-debuglib debuglib,compatfile | |
@@ -1853,26 +1853,27 @@ | @@ -1853,26 +1853,27 @@ | |||
1853 | ./usr/libdata/debug/usr/tests/lib/libc/c063/t_mkdirat.debug tests-lib-debug debug,atf,compattestfile | 1853 | ./usr/libdata/debug/usr/tests/lib/libc/c063/t_mkdirat.debug tests-lib-debug debug,atf,compattestfile | |
1854 | ./usr/libdata/debug/usr/tests/lib/libc/c063/t_mkfifoat.debug tests-lib-debug debug,atf,compattestfile | 1854 | ./usr/libdata/debug/usr/tests/lib/libc/c063/t_mkfifoat.debug tests-lib-debug debug,atf,compattestfile | |
1855 | ./usr/libdata/debug/usr/tests/lib/libc/c063/t_mknodat.debug tests-lib-debug debug,atf,compattestfile | 1855 | ./usr/libdata/debug/usr/tests/lib/libc/c063/t_mknodat.debug tests-lib-debug debug,atf,compattestfile | |
1856 | ./usr/libdata/debug/usr/tests/lib/libc/c063/t_o_search.debug tests-lib-debug debug,atf,compattestfile | 1856 | ./usr/libdata/debug/usr/tests/lib/libc/c063/t_o_search.debug tests-lib-debug debug,atf,compattestfile | |
1857 | ./usr/libdata/debug/usr/tests/lib/libc/c063/t_openat.debug tests-lib-debug debug,atf,compattestfile | 1857 | ./usr/libdata/debug/usr/tests/lib/libc/c063/t_openat.debug tests-lib-debug debug,atf,compattestfile | |
1858 | ./usr/libdata/debug/usr/tests/lib/libc/c063/t_readlinkat.debug tests-lib-debug debug,atf,compattestfile | 1858 | ./usr/libdata/debug/usr/tests/lib/libc/c063/t_readlinkat.debug tests-lib-debug debug,atf,compattestfile | |
1859 | ./usr/libdata/debug/usr/tests/lib/libc/c063/t_renameat.debug tests-lib-debug debug,atf,compattestfile | 1859 | ./usr/libdata/debug/usr/tests/lib/libc/c063/t_renameat.debug tests-lib-debug debug,atf,compattestfile | |
1860 | ./usr/libdata/debug/usr/tests/lib/libc/c063/t_symlinkat.debug tests-lib-debug debug,atf,compattestfile | 1860 | ./usr/libdata/debug/usr/tests/lib/libc/c063/t_symlinkat.debug tests-lib-debug debug,atf,compattestfile | |
1861 | ./usr/libdata/debug/usr/tests/lib/libc/c063/t_unlinkat.debug tests-lib-debug debug,atf,compattestfile | 1861 | ./usr/libdata/debug/usr/tests/lib/libc/c063/t_unlinkat.debug tests-lib-debug debug,atf,compattestfile | |
1862 | ./usr/libdata/debug/usr/tests/lib/libc/c063/t_utimensat.debug tests-lib-debug debug,atf,compattestfile | 1862 | ./usr/libdata/debug/usr/tests/lib/libc/c063/t_utimensat.debug tests-lib-debug debug,atf,compattestfile | |
1863 | ./usr/libdata/debug/usr/tests/lib/libc/db/h_db.debug tests-lib-debug debug,atf,compattestfile | 1863 | ./usr/libdata/debug/usr/tests/lib/libc/db/h_db.debug tests-lib-debug debug,atf,compattestfile | |
1864 | ./usr/libdata/debug/usr/tests/lib/libc/db/h_lfsr.debug tests-lib-debug debug,atf,compattestfile | 1864 | ./usr/libdata/debug/usr/tests/lib/libc/db/h_lfsr.debug tests-lib-debug debug,atf,compattestfile | |
1865 | ./usr/libdata/debug/usr/tests/lib/libc/db/t_db_hash_seq.debug tests-lib-debug debug,atf,compattestfile | 1865 | ./usr/libdata/debug/usr/tests/lib/libc/db/t_db_hash_seq.debug tests-lib-debug debug,atf,compattestfile | |
1866 | ./usr/libdata/debug/usr/tests/lib/libc/gen/exect/t_exect.debug tests-kernel-tests debug,atf,compattestfile | |||
1866 | ./usr/libdata/debug/usr/tests/lib/libc/gen/execve/t_execve.debug tests-kernel-tests debug,atf,compattestfile | 1867 | ./usr/libdata/debug/usr/tests/lib/libc/gen/execve/t_execve.debug tests-kernel-tests debug,atf,compattestfile | |
1867 | ./usr/libdata/debug/usr/tests/lib/libc/gen/posix_spawn/h_fileactions.debug tests-kernel-tests debug,atf,compattestfile | 1868 | ./usr/libdata/debug/usr/tests/lib/libc/gen/posix_spawn/h_fileactions.debug tests-kernel-tests debug,atf,compattestfile | |
1868 | ./usr/libdata/debug/usr/tests/lib/libc/gen/posix_spawn/h_spawn.debug tests-kernel-tests debug,atf,compattestfile | 1869 | ./usr/libdata/debug/usr/tests/lib/libc/gen/posix_spawn/h_spawn.debug tests-kernel-tests debug,atf,compattestfile | |
1869 | ./usr/libdata/debug/usr/tests/lib/libc/gen/posix_spawn/h_spawnattr.debug tests-kernel-tests debug,atf,compattestfile | 1870 | ./usr/libdata/debug/usr/tests/lib/libc/gen/posix_spawn/h_spawnattr.debug tests-kernel-tests debug,atf,compattestfile | |
1870 | ./usr/libdata/debug/usr/tests/lib/libc/gen/posix_spawn/t_fileactions.debug tests-kernel-tests debug,atf,compattestfile | 1871 | ./usr/libdata/debug/usr/tests/lib/libc/gen/posix_spawn/t_fileactions.debug tests-kernel-tests debug,atf,compattestfile | |
1871 | ./usr/libdata/debug/usr/tests/lib/libc/gen/posix_spawn/t_spawn.debug tests-kernel-tests debug,atf,compattestfile | 1872 | ./usr/libdata/debug/usr/tests/lib/libc/gen/posix_spawn/t_spawn.debug tests-kernel-tests debug,atf,compattestfile | |
1872 | ./usr/libdata/debug/usr/tests/lib/libc/gen/posix_spawn/t_spawnattr.debug tests-kernel-tests debug,atf,compattestfile | 1873 | ./usr/libdata/debug/usr/tests/lib/libc/gen/posix_spawn/t_spawnattr.debug tests-kernel-tests debug,atf,compattestfile | |
1873 | ./usr/libdata/debug/usr/tests/lib/libc/gen/t_alarm.debug tests-lib-debug debug,atf,compattestfile | 1874 | ./usr/libdata/debug/usr/tests/lib/libc/gen/t_alarm.debug tests-lib-debug debug,atf,compattestfile | |
1874 | ./usr/libdata/debug/usr/tests/lib/libc/gen/t_assert.debug tests-lib-debug debug,atf,compattestfile | 1875 | ./usr/libdata/debug/usr/tests/lib/libc/gen/t_assert.debug tests-lib-debug debug,atf,compattestfile | |
1875 | ./usr/libdata/debug/usr/tests/lib/libc/gen/t_basedirname.debug tests-lib-debug debug,atf,compattestfile | 1876 | ./usr/libdata/debug/usr/tests/lib/libc/gen/t_basedirname.debug tests-lib-debug debug,atf,compattestfile | |
1876 | ./usr/libdata/debug/usr/tests/lib/libc/gen/t_closefrom.debug tests-lib-debug debug,atf,compattestfile | 1877 | ./usr/libdata/debug/usr/tests/lib/libc/gen/t_closefrom.debug tests-lib-debug debug,atf,compattestfile | |
1877 | ./usr/libdata/debug/usr/tests/lib/libc/gen/t_cpuset.debug tests-lib-debug debug,atf,compattestfile | 1878 | ./usr/libdata/debug/usr/tests/lib/libc/gen/t_cpuset.debug tests-lib-debug debug,atf,compattestfile | |
1878 | ./usr/libdata/debug/usr/tests/lib/libc/gen/t_dir.debug tests-lib-debug debug,atf,compattestfile | 1879 | ./usr/libdata/debug/usr/tests/lib/libc/gen/t_dir.debug tests-lib-debug debug,atf,compattestfile |
--- src/distrib/sets/lists/tests/mi 2016/12/02 05:54:14 1.706
+++ src/distrib/sets/lists/tests/mi 2016/12/09 06:12:02 1.707
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: mi,v 1.706 2016/12/02 05:54:14 kamil Exp $ | 1 | # $NetBSD: mi,v 1.707 2016/12/09 06:12:02 kamil Exp $ | |
2 | # | 2 | # | |
3 | # Note: don't delete entries from here - mark them as "obsolete" instead. | 3 | # Note: don't delete entries from here - mark them as "obsolete" instead. | |
4 | # | 4 | # | |
5 | ./etc/mtree/set.tests tests-sys-root | 5 | ./etc/mtree/set.tests tests-sys-root | |
6 | ./usr/libdata/debug/usr/tests tests-base-debug compattestdir | 6 | ./usr/libdata/debug/usr/tests tests-base-debug compattestdir | |
7 | ./usr/libdata/debug/usr/tests/atf tests-atf-debug compattestfile,atf | 7 | ./usr/libdata/debug/usr/tests/atf tests-atf-debug compattestfile,atf | |
8 | ./usr/libdata/debug/usr/tests/atf/atf-c tests-atf-debug compattestfile,atf | 8 | ./usr/libdata/debug/usr/tests/atf/atf-c tests-atf-debug compattestfile,atf | |
9 | ./usr/libdata/debug/usr/tests/atf/atf-c++ tests-atf-debug compattestfile,atf | 9 | ./usr/libdata/debug/usr/tests/atf/atf-c++ tests-atf-debug compattestfile,atf | |
10 | ./usr/libdata/debug/usr/tests/atf/atf-c++/detail tests-atf-debug compattestfile,atf | 10 | ./usr/libdata/debug/usr/tests/atf/atf-c++/detail tests-atf-debug compattestfile,atf | |
11 | ./usr/libdata/debug/usr/tests/atf/atf-c/detail tests-atf-debug compattestfile,atf | 11 | ./usr/libdata/debug/usr/tests/atf/atf-c/detail tests-atf-debug compattestfile,atf | |
12 | ./usr/libdata/debug/usr/tests/atf/atf-compile tests-obsolete obsolete | 12 | ./usr/libdata/debug/usr/tests/atf/atf-compile tests-obsolete obsolete | |
13 | ./usr/libdata/debug/usr/tests/atf/atf-report tests-obsolete obsolete | 13 | ./usr/libdata/debug/usr/tests/atf/atf-report tests-obsolete obsolete | |
14 | ./usr/libdata/debug/usr/tests/atf/atf-run tests-obsolete obsolete | 14 | ./usr/libdata/debug/usr/tests/atf/atf-run tests-obsolete obsolete | |
@@ -80,26 +80,27 @@ | @@ -80,26 +80,27 @@ | |||
80 | ./usr/libdata/debug/usr/tests/kyua-cli/utils/process tests-kyua-tests compattestfile,atf | 80 | ./usr/libdata/debug/usr/tests/kyua-cli/utils/process tests-kyua-tests compattestfile,atf | |
81 | ./usr/libdata/debug/usr/tests/kyua-cli/utils/signals tests-kyua-tests compattestfile,atf | 81 | ./usr/libdata/debug/usr/tests/kyua-cli/utils/signals tests-kyua-tests compattestfile,atf | |
82 | ./usr/libdata/debug/usr/tests/kyua-cli/utils/sqlite tests-kyua-tests compattestfile,atf | 82 | ./usr/libdata/debug/usr/tests/kyua-cli/utils/sqlite tests-kyua-tests compattestfile,atf | |
83 | ./usr/libdata/debug/usr/tests/kyua-cli/utils/text tests-kyua-tests compattestfile,atf | 83 | ./usr/libdata/debug/usr/tests/kyua-cli/utils/text tests-kyua-tests compattestfile,atf | |
84 | ./usr/libdata/debug/usr/tests/kyua-testers tests-kyua-tests compattestfile,atf | 84 | ./usr/libdata/debug/usr/tests/kyua-testers tests-kyua-tests compattestfile,atf | |
85 | ./usr/libdata/debug/usr/tests/lib tests-lib-debug compattestfile,atf | 85 | ./usr/libdata/debug/usr/tests/lib tests-lib-debug compattestfile,atf | |
86 | ./usr/libdata/debug/usr/tests/lib/csu tests-lib-debug compattestfile,atf | 86 | ./usr/libdata/debug/usr/tests/lib/csu tests-lib-debug compattestfile,atf | |
87 | ./usr/libdata/debug/usr/tests/lib/libbluetooth tests-lib-debug compattestfile,atf | 87 | ./usr/libdata/debug/usr/tests/lib/libbluetooth tests-lib-debug compattestfile,atf | |
88 | ./usr/libdata/debug/usr/tests/lib/libbpfjit tests-lib-debug compattestfile,atf | 88 | ./usr/libdata/debug/usr/tests/lib/libbpfjit tests-lib-debug compattestfile,atf | |
89 | ./usr/libdata/debug/usr/tests/lib/libc tests-lib-debug compattestfile,atf | 89 | ./usr/libdata/debug/usr/tests/lib/libc tests-lib-debug compattestfile,atf | |
90 | ./usr/libdata/debug/usr/tests/lib/libc/c063 tests-lib-debug compattestfile,atf | 90 | ./usr/libdata/debug/usr/tests/lib/libc/c063 tests-lib-debug compattestfile,atf | |
91 | ./usr/libdata/debug/usr/tests/lib/libc/db tests-lib-debug compattestfile,atf | 91 | ./usr/libdata/debug/usr/tests/lib/libc/db tests-lib-debug compattestfile,atf | |
92 | ./usr/libdata/debug/usr/tests/lib/libc/gen tests-lib-debug compattestfile,atf | 92 | ./usr/libdata/debug/usr/tests/lib/libc/gen tests-lib-debug compattestfile,atf | |
93 | ./usr/libdata/debug/usr/tests/lib/libc/gen/exect tests-kernel-tests compattestfile,atf | |||
93 | ./usr/libdata/debug/usr/tests/lib/libc/gen/execve tests-kernel-tests compattestfile,atf | 94 | ./usr/libdata/debug/usr/tests/lib/libc/gen/execve tests-kernel-tests compattestfile,atf | |
94 | ./usr/libdata/debug/usr/tests/lib/libc/gen/posix_spawn tests-kernel-tests compattestfile,atf | 95 | ./usr/libdata/debug/usr/tests/lib/libc/gen/posix_spawn tests-kernel-tests compattestfile,atf | |
95 | ./usr/libdata/debug/usr/tests/lib/libc/getaddrinfo tests-obsolete obsolete | 96 | ./usr/libdata/debug/usr/tests/lib/libc/getaddrinfo tests-obsolete obsolete | |
96 | ./usr/libdata/debug/usr/tests/lib/libc/getaddrinfo/data tests-obsolete obsolete | 97 | ./usr/libdata/debug/usr/tests/lib/libc/getaddrinfo/data tests-obsolete obsolete | |
97 | ./usr/libdata/debug/usr/tests/lib/libc/getaddrinfo/h_gai tests-obsolete obsolete | 98 | ./usr/libdata/debug/usr/tests/lib/libc/getaddrinfo/h_gai tests-obsolete obsolete | |
98 | ./usr/libdata/debug/usr/tests/lib/libc/hash tests-lib-debug compattestfile,atf | 99 | ./usr/libdata/debug/usr/tests/lib/libc/hash tests-lib-debug compattestfile,atf | |
99 | ./usr/libdata/debug/usr/tests/lib/libc/ieeefp tests-obsolete obsolete | 100 | ./usr/libdata/debug/usr/tests/lib/libc/ieeefp tests-obsolete obsolete | |
100 | ./usr/libdata/debug/usr/tests/lib/libc/inet tests-lib-debug compattestfile,atf | 101 | ./usr/libdata/debug/usr/tests/lib/libc/inet tests-lib-debug compattestfile,atf | |
101 | ./usr/libdata/debug/usr/tests/lib/libc/locale tests-lib-debug compattestfile,atf | 102 | ./usr/libdata/debug/usr/tests/lib/libc/locale tests-lib-debug compattestfile,atf | |
102 | ./usr/libdata/debug/usr/tests/lib/libc/net tests-lib-debug compattestfile,atf | 103 | ./usr/libdata/debug/usr/tests/lib/libc/net tests-lib-debug compattestfile,atf | |
103 | ./usr/libdata/debug/usr/tests/lib/libc/net/getaddrinfo tests-lib-debug compattestfile,atf | 104 | ./usr/libdata/debug/usr/tests/lib/libc/net/getaddrinfo tests-lib-debug compattestfile,atf | |
104 | ./usr/libdata/debug/usr/tests/lib/libc/regex tests-lib-debug compattestfile,atf | 105 | ./usr/libdata/debug/usr/tests/lib/libc/regex tests-lib-debug compattestfile,atf | |
105 | ./usr/libdata/debug/usr/tests/lib/libc/rpc tests-lib-debug compattestfile,atf | 106 | ./usr/libdata/debug/usr/tests/lib/libc/rpc tests-lib-debug compattestfile,atf | |
@@ -2407,26 +2408,30 @@ | @@ -2407,26 +2408,30 @@ | |||
2407 | ./usr/tests/lib/libc/c063/t_unlinkat tests-lib-tests compattestfile,atf | 2408 | ./usr/tests/lib/libc/c063/t_unlinkat tests-lib-tests compattestfile,atf | |
2408 | ./usr/tests/lib/libc/c063/t_utimensat tests-lib-tests compattestfile,atf | 2409 | ./usr/tests/lib/libc/c063/t_utimensat tests-lib-tests compattestfile,atf | |
2409 | ./usr/tests/lib/libc/db tests-lib-tests compattestfile,atf | 2410 | ./usr/tests/lib/libc/db tests-lib-tests compattestfile,atf | |
2410 | ./usr/tests/lib/libc/db/Atffile tests-lib-tests compattestfile,atf | 2411 | ./usr/tests/lib/libc/db/Atffile tests-lib-tests compattestfile,atf | |
2411 | ./usr/tests/lib/libc/db/Kyuafile tests-lib-tests compattestfile,atf,kyua | 2412 | ./usr/tests/lib/libc/db/Kyuafile tests-lib-tests compattestfile,atf,kyua | |
2412 | ./usr/tests/lib/libc/db/README tests-lib-tests compattestfile,atf | 2413 | ./usr/tests/lib/libc/db/README tests-lib-tests compattestfile,atf | |
2413 | ./usr/tests/lib/libc/db/h_db tests-lib-tests compattestfile,atf | 2414 | ./usr/tests/lib/libc/db/h_db tests-lib-tests compattestfile,atf | |
2414 | ./usr/tests/lib/libc/db/h_lfsr tests-lib-tests compattestfile,atf | 2415 | ./usr/tests/lib/libc/db/h_lfsr tests-lib-tests compattestfile,atf | |
2415 | ./usr/tests/lib/libc/db/t_db tests-lib-tests compattestfile,atf | 2416 | ./usr/tests/lib/libc/db/t_db tests-lib-tests compattestfile,atf | |
2416 | ./usr/tests/lib/libc/db/t_db_hash_seq tests-lib-tests compattestfile,atf | 2417 | ./usr/tests/lib/libc/db/t_db_hash_seq tests-lib-tests compattestfile,atf | |
2417 | ./usr/tests/lib/libc/gen tests-lib-tests compattestfile,atf | 2418 | ./usr/tests/lib/libc/gen tests-lib-tests compattestfile,atf | |
2418 | ./usr/tests/lib/libc/gen/Atffile tests-lib-tests compattestfile,atf | 2419 | ./usr/tests/lib/libc/gen/Atffile tests-lib-tests compattestfile,atf | |
2419 | ./usr/tests/lib/libc/gen/Kyuafile tests-lib-tests compattestfile,atf,kyua | 2420 | ./usr/tests/lib/libc/gen/Kyuafile tests-lib-tests compattestfile,atf,kyua | |
2421 | ./usr/tests/lib/libc/gen/exect tests-kernel-tests compattestfile,atf | |||
2422 | ./usr/tests/lib/libc/gen/exect/Atffile tests-kernel-tests compattestfile,atf | |||
2423 | ./usr/tests/lib/libc/gen/exect/Kyuafile tests-kernel-tests compattestfile,atf,kyua | |||
2424 | ./usr/tests/lib/libc/gen/exect/t_exect tests-kernel-tests compattestfile,atf | |||
2420 | ./usr/tests/lib/libc/gen/execve tests-kernel-tests compattestfile,atf | 2425 | ./usr/tests/lib/libc/gen/execve tests-kernel-tests compattestfile,atf | |
2421 | ./usr/tests/lib/libc/gen/execve/Atffile tests-kernel-tests compattestfile,atf | 2426 | ./usr/tests/lib/libc/gen/execve/Atffile tests-kernel-tests compattestfile,atf | |
2422 | ./usr/tests/lib/libc/gen/execve/Kyuafile tests-kernel-tests compattestfile,atf,kyua | 2427 | ./usr/tests/lib/libc/gen/execve/Kyuafile tests-kernel-tests compattestfile,atf,kyua | |
2423 | ./usr/tests/lib/libc/gen/execve/t_execve tests-kernel-tests compattestfile,atf | 2428 | ./usr/tests/lib/libc/gen/execve/t_execve tests-kernel-tests compattestfile,atf | |
2424 | ./usr/tests/lib/libc/gen/posix_spawn tests-kernel-tests compattestfile,atf | 2429 | ./usr/tests/lib/libc/gen/posix_spawn tests-kernel-tests compattestfile,atf | |
2425 | ./usr/tests/lib/libc/gen/posix_spawn/Atffile tests-kernel-tests compattestfile,atf | 2430 | ./usr/tests/lib/libc/gen/posix_spawn/Atffile tests-kernel-tests compattestfile,atf | |
2426 | ./usr/tests/lib/libc/gen/posix_spawn/Kyuafile tests-kernel-tests compattestfile,atf,kyua | 2431 | ./usr/tests/lib/libc/gen/posix_spawn/Kyuafile tests-kernel-tests compattestfile,atf,kyua | |
2427 | ./usr/tests/lib/libc/gen/posix_spawn/h_fileactions tests-kernel-tests compattestfile,atf | 2432 | ./usr/tests/lib/libc/gen/posix_spawn/h_fileactions tests-kernel-tests compattestfile,atf | |
2428 | ./usr/tests/lib/libc/gen/posix_spawn/h_nonexec tests-kernel-tests compattestfile,atf | 2433 | ./usr/tests/lib/libc/gen/posix_spawn/h_nonexec tests-kernel-tests compattestfile,atf | |
2429 | ./usr/tests/lib/libc/gen/posix_spawn/h_spawn tests-kernel-tests compattestfile,atf | 2434 | ./usr/tests/lib/libc/gen/posix_spawn/h_spawn tests-kernel-tests compattestfile,atf | |
2430 | ./usr/tests/lib/libc/gen/posix_spawn/h_spawnattr tests-kernel-tests compattestfile,atf | 2435 | ./usr/tests/lib/libc/gen/posix_spawn/h_spawnattr tests-kernel-tests compattestfile,atf | |
2431 | ./usr/tests/lib/libc/gen/posix_spawn/h_zero tests-kernel-tests compattestfile,atf | 2436 | ./usr/tests/lib/libc/gen/posix_spawn/h_zero tests-kernel-tests compattestfile,atf | |
2432 | ./usr/tests/lib/libc/gen/posix_spawn/t_fileactions tests-kernel-tests compattestfile,atf | 2437 | ./usr/tests/lib/libc/gen/posix_spawn/t_fileactions tests-kernel-tests compattestfile,atf |
--- src/etc/mtree/NetBSD.dist.tests 2016/12/02 05:54:14 1.136
+++ src/etc/mtree/NetBSD.dist.tests 2016/12/09 06:12:02 1.137
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: NetBSD.dist.tests,v 1.136 2016/12/02 05:54:14 kamil Exp $ | 1 | # $NetBSD: NetBSD.dist.tests,v 1.137 2016/12/09 06:12:02 kamil Exp $ | |
2 | 2 | |||
3 | ./usr/libdata/debug/usr/tests | 3 | ./usr/libdata/debug/usr/tests | |
4 | ./usr/libdata/debug/usr/tests/atf | 4 | ./usr/libdata/debug/usr/tests/atf | |
5 | ./usr/libdata/debug/usr/tests/atf/atf-c | 5 | ./usr/libdata/debug/usr/tests/atf/atf-c | |
6 | ./usr/libdata/debug/usr/tests/atf/atf-c/detail | 6 | ./usr/libdata/debug/usr/tests/atf/atf-c/detail | |
7 | ./usr/libdata/debug/usr/tests/atf/atf-c++ | 7 | ./usr/libdata/debug/usr/tests/atf/atf-c++ | |
8 | ./usr/libdata/debug/usr/tests/atf/atf-c++/detail | 8 | ./usr/libdata/debug/usr/tests/atf/atf-c++/detail | |
9 | ./usr/libdata/debug/usr/tests/atf/formats | 9 | ./usr/libdata/debug/usr/tests/atf/formats | |
10 | ./usr/libdata/debug/usr/tests/atf/test-programs | 10 | ./usr/libdata/debug/usr/tests/atf/test-programs | |
11 | ./usr/libdata/debug/usr/tests/atf/tools | 11 | ./usr/libdata/debug/usr/tests/atf/tools | |
12 | ./usr/libdata/debug/usr/tests/bin | 12 | ./usr/libdata/debug/usr/tests/bin | |
13 | ./usr/libdata/debug/usr/tests/bin/df | 13 | ./usr/libdata/debug/usr/tests/bin/df | |
14 | ./usr/libdata/debug/usr/tests/crypto | 14 | ./usr/libdata/debug/usr/tests/crypto | |
@@ -70,26 +70,27 @@ | @@ -70,26 +70,27 @@ | |||
70 | ./usr/libdata/debug/usr/tests/kyua-cli/utils/process | 70 | ./usr/libdata/debug/usr/tests/kyua-cli/utils/process | |
71 | ./usr/libdata/debug/usr/tests/kyua-cli/utils/signals | 71 | ./usr/libdata/debug/usr/tests/kyua-cli/utils/signals | |
72 | ./usr/libdata/debug/usr/tests/kyua-cli/utils/sqlite | 72 | ./usr/libdata/debug/usr/tests/kyua-cli/utils/sqlite | |
73 | ./usr/libdata/debug/usr/tests/kyua-cli/utils/text | 73 | ./usr/libdata/debug/usr/tests/kyua-cli/utils/text | |
74 | ./usr/libdata/debug/usr/tests/kyua-testers | 74 | ./usr/libdata/debug/usr/tests/kyua-testers | |
75 | ./usr/libdata/debug/usr/tests/lib | 75 | ./usr/libdata/debug/usr/tests/lib | |
76 | ./usr/libdata/debug/usr/tests/lib/csu | 76 | ./usr/libdata/debug/usr/tests/lib/csu | |
77 | ./usr/libdata/debug/usr/tests/lib/libbluetooth | 77 | ./usr/libdata/debug/usr/tests/lib/libbluetooth | |
78 | ./usr/libdata/debug/usr/tests/lib/libbpfjit | 78 | ./usr/libdata/debug/usr/tests/lib/libbpfjit | |
79 | ./usr/libdata/debug/usr/tests/lib/libc | 79 | ./usr/libdata/debug/usr/tests/lib/libc | |
80 | ./usr/libdata/debug/usr/tests/lib/libc/c063 | 80 | ./usr/libdata/debug/usr/tests/lib/libc/c063 | |
81 | ./usr/libdata/debug/usr/tests/lib/libc/db | 81 | ./usr/libdata/debug/usr/tests/lib/libc/db | |
82 | ./usr/libdata/debug/usr/tests/lib/libc/gen | 82 | ./usr/libdata/debug/usr/tests/lib/libc/gen | |
83 | ./usr/libdata/debug/usr/tests/lib/libc/gen/exect | |||
83 | ./usr/libdata/debug/usr/tests/lib/libc/gen/execve | 84 | ./usr/libdata/debug/usr/tests/lib/libc/gen/execve | |
84 | ./usr/libdata/debug/usr/tests/lib/libc/gen/posix_spawn | 85 | ./usr/libdata/debug/usr/tests/lib/libc/gen/posix_spawn | |
85 | ./usr/libdata/debug/usr/tests/lib/libc/hash | 86 | ./usr/libdata/debug/usr/tests/lib/libc/hash | |
86 | ./usr/libdata/debug/usr/tests/lib/libc/locale | 87 | ./usr/libdata/debug/usr/tests/lib/libc/locale | |
87 | ./usr/libdata/debug/usr/tests/lib/libc/inet | 88 | ./usr/libdata/debug/usr/tests/lib/libc/inet | |
88 | ./usr/libdata/debug/usr/tests/lib/libc/net | 89 | ./usr/libdata/debug/usr/tests/lib/libc/net | |
89 | ./usr/libdata/debug/usr/tests/lib/libc/net/getaddrinfo | 90 | ./usr/libdata/debug/usr/tests/lib/libc/net/getaddrinfo | |
90 | ./usr/libdata/debug/usr/tests/lib/libc/regex | 91 | ./usr/libdata/debug/usr/tests/lib/libc/regex | |
91 | ./usr/libdata/debug/usr/tests/lib/libc/rpc | 92 | ./usr/libdata/debug/usr/tests/lib/libc/rpc | |
92 | ./usr/libdata/debug/usr/tests/lib/libc/setjmp | 93 | ./usr/libdata/debug/usr/tests/lib/libc/setjmp | |
93 | ./usr/libdata/debug/usr/tests/lib/libc/ssp | 94 | ./usr/libdata/debug/usr/tests/lib/libc/ssp | |
94 | ./usr/libdata/debug/usr/tests/lib/libc/stdio | 95 | ./usr/libdata/debug/usr/tests/lib/libc/stdio | |
95 | ./usr/libdata/debug/usr/tests/lib/libc/stdlib | 96 | ./usr/libdata/debug/usr/tests/lib/libc/stdlib | |
@@ -252,26 +253,27 @@ | @@ -252,26 +253,27 @@ | |||
252 | ./usr/tests/kyua-cli/utils/logging | 253 | ./usr/tests/kyua-cli/utils/logging | |
253 | ./usr/tests/kyua-cli/utils/process | 254 | ./usr/tests/kyua-cli/utils/process | |
254 | ./usr/tests/kyua-cli/utils/signals | 255 | ./usr/tests/kyua-cli/utils/signals | |
255 | ./usr/tests/kyua-cli/utils/sqlite | 256 | ./usr/tests/kyua-cli/utils/sqlite | |
256 | ./usr/tests/kyua-cli/utils/text | 257 | ./usr/tests/kyua-cli/utils/text | |
257 | ./usr/tests/kyua-testers | 258 | ./usr/tests/kyua-testers | |
258 | ./usr/tests/lib | 259 | ./usr/tests/lib | |
259 | ./usr/tests/lib/csu | 260 | ./usr/tests/lib/csu | |
260 | ./usr/tests/lib/libbluetooth | 261 | ./usr/tests/lib/libbluetooth | |
261 | ./usr/tests/lib/libc | 262 | ./usr/tests/lib/libc | |
262 | ./usr/tests/lib/libc/c063 | 263 | ./usr/tests/lib/libc/c063 | |
263 | ./usr/tests/lib/libc/db | 264 | ./usr/tests/lib/libc/db | |
264 | ./usr/tests/lib/libc/gen | 265 | ./usr/tests/lib/libc/gen | |
266 | ./usr/tests/lib/libc/gen/exect | |||
265 | ./usr/tests/lib/libc/gen/execve | 267 | ./usr/tests/lib/libc/gen/execve | |
266 | ./usr/tests/lib/libc/gen/posix_spawn | 268 | ./usr/tests/lib/libc/gen/posix_spawn | |
267 | ./usr/tests/lib/libc/hash | 269 | ./usr/tests/lib/libc/hash | |
268 | ./usr/tests/lib/libc/hash/data | 270 | ./usr/tests/lib/libc/hash/data | |
269 | ./usr/tests/lib/libc/locale | 271 | ./usr/tests/lib/libc/locale | |
270 | ./usr/tests/lib/libc/inet | 272 | ./usr/tests/lib/libc/inet | |
271 | ./usr/tests/lib/libc/net | 273 | ./usr/tests/lib/libc/net | |
272 | ./usr/tests/lib/libc/net/getaddrinfo | 274 | ./usr/tests/lib/libc/net/getaddrinfo | |
273 | ./usr/tests/lib/libc/net/getaddrinfo/data | 275 | ./usr/tests/lib/libc/net/getaddrinfo/data | |
274 | ./usr/tests/lib/libc/regex | 276 | ./usr/tests/lib/libc/regex | |
275 | ./usr/tests/lib/libc/regex/data | 277 | ./usr/tests/lib/libc/regex/data | |
276 | ./usr/tests/lib/libc/rpc | 278 | ./usr/tests/lib/libc/rpc | |
277 | ./usr/tests/lib/libc/setjmp | 279 | ./usr/tests/lib/libc/setjmp |
--- src/tests/lib/libc/gen/Makefile 2015/12/22 14:25:58 1.49
+++ src/tests/lib/libc/gen/Makefile 2016/12/09 06:12:02 1.50
@@ -1,20 +1,21 @@ | @@ -1,20 +1,21 @@ | |||
1 | # $NetBSD: Makefile,v 1.49 2015/12/22 14:25:58 christos Exp $ | 1 | # $NetBSD: Makefile,v 1.50 2016/12/09 06:12:02 kamil Exp $ | |
2 | 2 | |||
3 | .include <bsd.own.mk> | 3 | .include <bsd.own.mk> | |
4 | 4 | |||
5 | TESTSDIR= ${TESTSBASE}/lib/libc/gen | 5 | TESTSDIR= ${TESTSBASE}/lib/libc/gen | |
6 | 6 | |||
7 | TESTS_SUBDIRS= execve | 7 | TESTS_SUBDIRS= exect | |
8 | TESTS_SUBDIRS+= execve | |||
8 | TESTS_SUBDIRS+= posix_spawn | 9 | TESTS_SUBDIRS+= posix_spawn | |
9 | 10 | |||
10 | TESTS_C+= t_alarm | 11 | TESTS_C+= t_alarm | |
11 | TESTS_C+= t_assert | 12 | TESTS_C+= t_assert | |
12 | TESTS_C+= t_basedirname | 13 | TESTS_C+= t_basedirname | |
13 | TESTS_C+= t_closefrom | 14 | TESTS_C+= t_closefrom | |
14 | TESTS_C+= t_cpuset | 15 | TESTS_C+= t_cpuset | |
15 | TESTS_C+= t_dir | 16 | TESTS_C+= t_dir | |
16 | TESTS_C+= t_floatunditf | 17 | TESTS_C+= t_floatunditf | |
17 | TESTS_C+= t_fmtcheck | 18 | TESTS_C+= t_fmtcheck | |
18 | TESTS_C+= t_fnmatch | 19 | TESTS_C+= t_fnmatch | |
19 | TESTS_C+= t_fpclassify | 20 | TESTS_C+= t_fpclassify | |
20 | TESTS_C+= t_fpsetmask | 21 | TESTS_C+= t_fpsetmask |
--- src/tests/lib/libc/gen/exect/Attic/t_exect.c 2016/12/09 04:00:36 1.1
+++ src/tests/lib/libc/gen/exect/Attic/t_exect.c 2016/12/09 06:12:02 1.2
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: t_exect.c,v 1.1 2016/12/09 04:00:36 kamil Exp $ */ | 1 | /* $NetBSD: t_exect.c,v 1.2 2016/12/09 06:12:02 kamil Exp $ */ | |
2 | 2 | |||
3 | /*- | 3 | /*- | |
4 | * Copyright (c) 2014 The NetBSD Foundation, Inc. | 4 | * Copyright (c) 2014 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,41 +19,52 @@ | @@ -19,41 +19,52 @@ | |||
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 <atf-c.h> | 29 | #include <atf-c.h> | |
30 | 30 | |||
31 | #include <errno.h> | 31 | #include <errno.h> | |
32 | #include <signal.h> | |||
32 | #include <stddef.h> | 33 | #include <stddef.h> | |
33 | #include <stdio.h> | 34 | #include <stdio.h> | |
34 | #include <unistd.h> | 35 | #include <unistd.h> | |
35 | 36 | |||
36 | ATF_TC(t_exect_null); | 37 | ATF_TC(t_exect_null); | |
37 | 38 | |||
38 | ATF_TC_HEAD(t_exect_null, tc) | 39 | ATF_TC_HEAD(t_exect_null, tc) | |
39 | { | 40 | { | |
40 | atf_tc_set_md_var(tc, "descr", | 41 | atf_tc_set_md_var(tc, "descr", | |
41 | "Tests an empty exect(2) executing"); | 42 | "Tests an empty exect(2) executing"); | |
42 | } | 43 | } | |
43 | 44 | |||
45 | static void | |||
46 | sigtrap_handler(int sig, siginfo_t *info, void *ctx) | |||
47 | { | |||
48 | ATF_REQUIRE_EQ(sig, SIGTRAP); | |||
49 | ATF_REQUIRE_EQ(info->si_code, TRAP_TRACE); | |||
50 | } | |||
51 | ||||
44 | ATF_TC_BODY(t_exect_null, tc) | 52 | ATF_TC_BODY(t_exect_null, tc) | |
45 | { | 53 | { | |
46 | int err; | 54 | struct sigaction act; | |
55 | ||||
56 | ATF_REQUIRE(sigemptyset(&act.sa_mask) == 0); | |||
57 | act.sa_sigaction = sigtrap_handler; | |||
58 | act.sa_flags = SA_SIGINFO; | |||
59 | ||||
60 | ATF_REQUIRE(sigaction(SIGTRAP, &act, 0) == 0); | |||
47 | 61 | |||
48 | err = exect(NULL, NULL, NULL); | 62 | ATF_REQUIRE_ERRNO(EFAULT, exect(NULL, NULL, NULL) == -1); | |
49 | ATF_REQUIRE(err == -1); | |||
50 | ATF_REQUIRE_MSG(errno == EFAULT, | |||
51 | "wrong error returned %d instead of %d", errno, EFAULT); | |||
52 | } | 63 | } | |
53 | 64 | |||
54 | ATF_TP_ADD_TCS(tp) | 65 | ATF_TP_ADD_TCS(tp) | |
55 | { | 66 | { | |
56 | ATF_TP_ADD_TC(tp, t_exect_null); | 67 | ATF_TP_ADD_TC(tp, t_exect_null); | |
57 | 68 | |||
58 | return atf_no_error(); | 69 | return atf_no_error(); | |
59 | } | 70 | } |