Commit Graph

4362 Commits

Author SHA1 Message Date
msaitoh 48b6679adf s/ we we / we / 2020-11-30 05:30:56 +00:00
christos 43d7e2f9be map enough space for both the page we write and the guard so that we make
sure we own the guard page before we set its protection to none. This fixes
random SEGVs where the page we set protection to none probably belonged to
the dynamic linker. Reported by gson@
2020-11-27 16:50:02 +00:00
gson 10c9b659e2 delete trailing whitespace 2020-11-27 15:37:06 +00:00
yamaguchi 37f4aefcd5 Use a state of IPCP and IPv6CP to wait for connection established 2020-11-25 10:35:07 +00:00
gson b19091917e Mark t_tsan_*:*profile test cases as expected failures as discussed in
PR toolchain/55760.
2020-11-17 08:25:57 +00:00
martin 3a37f06f8b PR 55338: re-enable threxec test for more test coverage. 2020-11-08 08:54:50 +00:00
martin 5e2aeb226f Fix typo 2020-11-05 20:03:56 +00:00
christos 340d07a6bc Add unit-tests for col from FreeBSD 2020-11-01 22:28:32 +00:00
gson 086d077df3 Make the mkstemps_basic and mkostemps_basic test cases not randomly
fail when the replacement string happens to contain the letter "y".
2020-11-01 18:19:54 +00:00
christos ffcac9dc43 Avoid hard-coding names and limits so this will not break again. 2020-10-31 14:57:02 +00:00
christos ed75ee8266 PR/55663: Ruslan Nikolaev: Add support for EVFILT_USER in kqueue(2) 2020-10-31 01:08:31 +00:00
kre 74ce69e5d7 Update the test a little so that is possible to pass
(if date fails, because of bad or out of range input
to parsedate, it cannot be expected to output the
expected result).

Remove the atf-expect-fail now that parsedate() should
detect overflows, and fail, causing date to fail, rather
than simply producing bogus results.
2020-10-30 22:03:35 +00:00
blymn 865079658a Disable the wgetch test as it appears to be missing at the moment. 2020-10-29 00:27:50 +00:00
martin bc61105d29 Use the relative paths in the installed version, not the (different)
source pathes.
2020-10-27 11:01:22 +00:00
mgorny fc2fc80ae1 Add tests for AVX-512 registers (zmm0..zmm31, k0..7)
Thanks to David Seifert <soap@gentoo.org> for providing a VM
on an AVX-512 capable hardware

Reviewed by kamil
2020-10-27 08:32:36 +00:00
roy 033e3d74df Remove extra parens 2020-10-24 14:45:06 +00:00
martin 675eb1fbbe Add the new tests + check files, sort. 2020-10-24 14:21:25 +00:00
mgorny 120793c21a Issue 64-bit versions of *XSAVE* for 64-bit amd64 programs
When calling FXSAVE, XSAVE, FXRSTOR, ... for 64-bit programs on amd64
use the 64-suffixed variant in order to include the complete FIP/FDP
registers in the x87 area.

The difference between the two variants is that the FXSAVE64 (new)
variant represents FIP/FDP as 64-bit fields (union fp_addr.fa_64),
while the legacy FXSAVE variant uses split fields: 32-bit offset,
16-bit segment and 16-bit reserved field (union fp_addr.fa_32).
The latter implies that the actual addresses are truncated to 32 bits
which is insufficient in modern programs.

The change is applied only to 64-bit programs on amd64.  Plain i386
and compat32 continue using plain FXSAVE.  Similarly, NVMM is not
changed as I am not familiar with that code.

This is a potentially breaking change.  However, I don't think it likely
to actually break anything because the data provided by the old variant
were not meaningful (because of the truncated pointer).
2020-10-24 07:14:29 +00:00
blymn ce321bb046 Merge in code from Google Summer of Code project which dramatically
increases the number of tests performed.

Thanks to Naman Jain <jnaman806@gmail.com> for his excellent work on
this GSoC project.
2020-10-24 04:46:16 +00:00
rillig 3e905e9da4 make(1): split test suffixes.mk into simpler, isolated tests
The code in suff.c is already hard to understand, and so were the tests
in suffixes.mk since several independent topics were merged into a
single test.

Splitting this test into a separate test per issue allows to document
the expected and actual behavior in more detail.  That's complicated
enough already.

PR bin/49086
2020-10-20 20:36:53 +00:00
kre e12ce6c4ea Adapt for change to parsedate() which now follows POSIX and altered the
dividing line between 21st and 20th century conversions from 69/70 to
68/69.   Adapt the tests for this to conform.
2020-10-19 15:06:49 +00:00
roy 12f661253d wg: Fix tests by sprinkling ifconfig -w 10
So protocols have time to finish setup.
2020-10-16 16:17:23 +00:00
mgorny fb8e91f57b Remove leftover commented out #if 0 2020-10-16 08:51:12 +00:00
rin 9b836018df Apply fix in rev 1.2 for core_dump_procinfo to aarch64 and arm:
http://cvsweb.netbsd.org/bsdweb.cgi/src/tests/lib/libc/sys/t_ptrace_core_wait.h#rev1.2

> For powerpc, program counter is not automatically incremented by trap
> instruction. We cannot increment PC in the trap handler, which breaks
> applications depending on this behavior, e.g., GDB.

This statement is true for aarch64 and arm.

Also, use PTRACE_BREAKPOINT_SIZE instead of hard-coded 4 to address
instruction next to PC.

OK ryo
2020-10-15 22:59:50 +00:00
mgorny 268edb6f45 Add tests for process_xmm_to_s87() and process_s87_to_xmm() 2020-10-15 17:44:44 +00:00
mgorny e0a152e645 Fix s87_tw reconstruction to correctly indicate register states
Fix the code reconstructing s87_tw (full tag word) from fx_sw (abridged
tag word) to correctly represent all register states.  The previous code
only distinguished between empty/non-empty registers, and assigned
'regular value' to all non-empty registers.  The new code explicitly
distinguishes the two other tag word values: empty and special.
2020-10-15 17:43:08 +00:00
rin be600c49a8 Argument for AUDIO_WSEEK ioctl is u_long, not int.
Fix false positive for aarch64eb (LP64BE):
AUDIO_WSEEK, failed, Line 4467: n expects 4 but 0
2020-10-13 09:00:17 +00:00
rin d92bac2dfd Bump soft/hard limits for stack to 6MB for aarch64{,eb}, where old value
(~4MB) is too small to be accepted.
2020-10-13 06:58:57 +00:00
rin dab17687cc For aarch64eb, no SIGBUS signal for unaligned accesses.
Convert to preprocessor directives.
2020-10-13 06:55:25 +00:00
rin f46f81bd9a Now, profiling works for GCC9 on aarch64{,eb}.
Note that it seems to work even for GCC8, according to log data of
official test runs, e.g.,

	https://releng.netbsd.org/b5reports/evbarm-aarch64/2020/2020.09.01.15.45.20/test.log
2020-10-13 06:49:27 +00:00
christos d32a26f01d simplify: use two arguments again, suggested by kre@ 2020-10-11 18:43:50 +00:00
christos d4a34e5d29 Add tests for h and x flags 2020-10-11 17:17:39 +00:00
mgorny 3a2c6ec6be Add tests for x87 FPU registers
Reviewed by kamil
2020-10-09 17:43:30 +00:00
mgorny 431834add9 Rename MM_REG macro to ST_MAN, and cover fpr/xstate with it
Rename the MM_REG macro to ST_MAN, to make it clearer that it gets
mantissa of ST registers which overlaps with MM registers but can be
also used to read ST registers (to be used in the next commit).  Extend
it to cover the difference between GETFPREGS and GETXSTATE,
and therefore avoid additional condition on i386.

Reviewed by kamil.
2020-10-09 17:43:07 +00:00
rin 8674cb4654 Link librumpclient explicitly. Fix sun2, i.e., MKPIC=no build. 2020-10-01 13:49:18 +00:00
roy d1817bc062 Be like other tests and speciy the binary name we install 2020-09-30 17:14:11 +00:00
roy 04b4419fc0 Fix prior 2020-09-30 17:05:59 +00:00
roy 856440c094 tap(4): update the test so that we can open the tap to ping across a bridge
ping with tap closed to ensure it fails
ping with tap open to ensure it works
2020-09-30 14:43:15 +00:00
roy 428927374e vether(4): Add ATF tests based on the tap(4) tests. 2020-09-29 19:41:48 +00:00
roy fd5c758a79 Whitespace 2020-09-29 16:35:42 +00:00
roy d76886af8e Fix build with clang. 2020-09-29 16:34:07 +00:00
yamaguchi 643fff90fa update test cases for AC-Name and Service-Name 2020-09-25 06:15:30 +00:00
yamaguchi 52817f12eb Add test cases for AC-Name and Service-Name 2020-09-25 06:07:31 +00:00
yamaguchi 3b0bfceb86 Add a limit for auth at a test for invalid account 2020-09-23 06:18:20 +00:00
yamaguchi 55cf8635ae Fix typo 2020-09-23 05:56:55 +00:00
kamil 8f03799314 Add new RTLD test file for r_debug
New tests:
 - self
 - dlopen

Both check whether the r_debug structure seems to be well-formed, without
and with a dlopen(3) call.
2020-09-22 01:09:32 +00:00
roy 65e7bf86f8 arp tests: Delete ARP entry after failed ping test
As it might hang around in WAITDELETE for a few seconds.
2020-09-18 16:33:49 +00:00
roy fc25529d69 ndp_rtm: Only ping once
Pointless doing 3 pings.
On a slow system, it's possible that many RTM_MISS messages could
overflow into the next test.
2020-09-17 11:56:35 +00:00
roy 6a4c2721f4 arp_rtm: Only ping once
Pointless doing 10 pings.
On a slow system, it's possible that many RTM_MISS messages could
overflow into the next test.
2020-09-17 11:51:01 +00:00
roy 7a353eb78e Don't check lifetime when testing published 2020-09-15 11:19:10 +00:00