joerg
fc67b0cd11
Switch terminfo(3) to cdb(5).
2012-06-03 23:19:09 +00:00
joerg
49d8b9bb05
Spell NetBSD correctly.
2012-06-03 02:10:46 +00:00
martin
86b8339d8d
adapt to new reality
2012-06-02 16:52:18 +00:00
njoly
f567e6f954
Adjust test for recent atf_machine (amd64) -> atf_arch (x86_64)
...
change.
2012-06-02 14:52:28 +00:00
martin
9c63b84225
Do not skip the block device mmap test, as it does not crash
...
the kernel any more. Mark it as expected failure instead.
2012-06-01 15:59:21 +00:00
martin
78b7b66d90
Add a (skipped for now) test case for PR 46463
2012-05-31 20:31:07 +00:00
jruoho
88bb4c68e1
Add patch from Tetsuya Isaki in PR lib/46433.
2012-05-30 15:14:10 +00:00
jruoho
c4e17f798c
Use "atf_arch" instead of "atf_machine"; see atf-config(1).
2012-05-30 15:11:58 +00:00
martin
f124f6239d
Skip test on non-amd64 machines for now, pointing to PR 46490.
2012-05-30 06:01:22 +00:00
martin
8fa6d6191d
Not a good idea to continue testing if basic assertions fail - only will
...
cause core dumps later.
2012-05-28 09:51:34 +00:00
martin
a0f17796a7
Fix destination directory
2012-05-27 22:57:24 +00:00
christos
a534436e93
one too many e's
2012-05-27 19:21:26 +00:00
christos
d1cc87bd78
hook in libexecinfo
2012-05-27 18:52:16 +00:00
christos
5212b5c3e8
add a test for the backtrace function.
2012-05-27 18:47:18 +00:00
martin
3a550d746a
Simplify creation of a temporary file slightly, fix sizeof(buf) confusion
...
when buf is a pointer.
2012-05-23 16:08:32 +00:00
martin
6a653c6635
Typo in comment
2012-05-22 09:23:39 +00:00
martin
6c3cc552c2
Calling _lwp_create() with a bogus ucontext could trigger a kernel
...
assertion failure (and thus a crash in DIAGNOSTIC kernels). Independently
discovered by YAMAMOTO Takashi and Joel Sing.
To avoid this, introduce a cpu_mcontext_validate() function and move all
sanity checks from cpu_setmcontext() there. Also untangle the netbsd32
compat mess slightly and add a cpu_mcontext32_validate() cousin there.
Add an exhaustive atf test case, based partly on code from Joel Sing.
Should finally fix the remaining open part of PR kern/43903.
2012-05-21 14:15:16 +00:00
martin
cfbccd804b
mmap_block:
...
do not use a hardcoded block device list, but query the kernel for attached
disks instead, then try to mmap the raw partition.
2012-05-16 19:12:59 +00:00
jruoho
5c4e704752
Remove also redundant comment (the reference to the PR is already in the
...
metadata).
2012-05-16 13:54:28 +00:00
martin
7c32638bb1
Simplify the test for PR kern/4645 and make it independend of resource
...
settings.
2012-05-16 13:48:35 +00:00
wiz
d00eda4ad2
Fix typo in comment.
2012-05-16 11:45:08 +00:00
martin
90aaec5d8a
Enable the test for PR kern/46457 now that it does not crash the
...
kernel any more.
2012-05-16 09:51:58 +00:00
jruoho
b1a7d876eb
Add a case for PR kern/46457. This is skipped for the time being, as it
...
reproduces the panic described in the PR.
2012-05-16 09:06:35 +00:00
alnsn
c5290ad075
Test a bug found by Geza Herman.
2012-05-15 18:46:20 +00:00
martin
c06a8560ae
Revert previous, si_addr is expected to be the faulting *data* address
...
(mmm, consistent standards).
Add a few tweaks to prevent the compiler's optimizer outsmarting the test.
2012-04-23 15:07:56 +00:00
martin
51f1919a26
Do not compare si_addr (address of faulting instruction) against the
...
unaligned data address causing the fault - this will always fail.
If anybody knows a portable way to get the data address involved in the
fault, please fix the test case as originally intended.
2012-04-22 08:52:26 +00:00
jruoho
2ef8e9d811
Avoid harmless compiler (integer) warnings.
2012-04-21 01:15:13 +00:00
jruoho
71224831e0
Add few unit tests for mlock(2), including a case for PR kern/44788.
2012-04-20 12:11:29 +00:00
jruoho
c69613ea1e
Close all file descriptors before trying to reason about the number of open
...
descriptors. Should fix the test failures reported on current users.
2012-04-20 05:15:11 +00:00
jym
c5252d3225
ATF test for SIGBUS => BUS_ADRALN (invalid address alignment).
...
That one is tedious to test under x86: alignment exceptions are
not reported by this architecture unless you ask for them explicitely (by
setting the PSL_AC bit). The brokenness does not end there: %cr2 should
contain the address where the unaligned access occured, alas, it does not.
I am not aware of other architectures where this could happen. Still, my
knowledge is limited; if there is one, feel free to send me a mail and I
will update the test accordingly.
Adding insult to injury, this test can fail in various funny ways with VMs:
- under x86 QEMU, no trap() happens. As ring 3 code stays almost untouched by
QEMU VMM, I suppose the exception can only be triggered when the host
itself is capable of catching unaligned accesses.
- under Virtual Box with HVM support, i386 works fine, but amd64 fails with a
SIGILL (Illegal instruction) that happens right before entering the
signal handler. No idea why, and trying to debug it with gdb freezes the VM
(including ddb breaks).
Anyway, tested with:
- i386: P4 host, anita, Virtual Box HVM (Mac OS X)
- amd64: anita, Virtual Box HVM (Mac OS X)
XXX I would appreciate if someone could test it under a real amd64 host with
an up-to-date kernel, so I can reasonably assume that the culprit is
Virtual Box and not our amd64 port (my test machine being off line
I cannot do it myself). Results from other arches would be a plus too.
Initial issue reported by Nicolas Joly on port-amd64. Thanks!
2012-04-20 00:40:31 +00:00
jruoho
f95573c233
Return from main() and use EXIT_FAILURE/EXIT_SUCCESS from stdlib(3).
2012-04-17 09:23:21 +00:00
njoly
d2c0752725
Do not re-add -mieee option on alpha, it's already set by default.
2012-04-13 12:31:19 +00:00
jruoho
93242fdaae
Xfail on qemu unconditionally after all.
2012-04-13 06:10:55 +00:00
jruoho
6c8d572a17
Reduce the number of snprintf(3) invocations, as sparc/qemu timeouts.
2012-04-11 16:21:42 +00:00
jruoho
1fea472283
Flip previous (i386/qemu fails, not the amd64/qemu).
2012-04-11 16:18:39 +00:00
jruoho
a141b66fc2
Revisit the previous: fails on qemu/amd64 but not qemu/i386.
2012-04-11 10:18:25 +00:00
jruoho
3964c8242c
As it turned out, the fpsetmask(3) tests were unnecessarily skipped on Qemu.
...
Thus, remove xfails that do not trigger.
2012-04-11 06:45:16 +00:00
jruoho
fd6c1df52d
Do not skip the tests on Qemu, but point to PR misc/44767 instead.
2012-04-10 12:43:06 +00:00
jruoho
97f06f6fb9
Point to port-macppc/46319 when failing on macppc.
2012-04-10 03:59:59 +00:00
martin
4e00857f25
Fix asynchronous posix_spawn child exit status (and test for it).
2012-04-09 19:42:06 +00:00
martin
94b761b6aa
Rework posix_spawn locking and memory management:
...
- always provide a vmspace for the new proc, initially borrowing from proc0
(this part fixes PR 46286)
- increase parallelism between parent and child if arguments allow this,
avoiding a potential deadlock on exec_lock
- add a new flag for userland to request old (lockstepped) behaviour for
better error reporting
- adapt test cases to the previous two and add a new variant to test the
diagnostics flag
- fix a few memory (and lock) leaks
- provide netbsd32 compat
2012-04-08 11:27:44 +00:00
jruoho
8c481fc14f
Append few basic test cases.
2012-04-08 09:58:59 +00:00
jruoho
ff8307152c
Remove one xfail that does not seem to fail (on alpha).
2012-04-08 09:36:04 +00:00
jruoho
68f1ec4f2e
Point to PR port-alpha/46301 when failing on Alpha.
2012-04-06 08:07:32 +00:00
jruoho
018955d46b
Adjust.
2012-04-06 07:53:10 +00:00
joerg
b757af438b
Disable new -Wstring-plus-int warning where needed for now.
...
Adjust various places that add GCC-only options to check for the active
compiler first.
2012-04-04 10:59:44 +00:00
joerg
be8014a7fa
Try fixing t_strtod to not depend on -ffloat-store by adding the
...
necessary volatiles.
2012-04-04 10:52:59 +00:00
joerg
114f211aa1
Be UTF8 clean.
2012-04-04 10:03:53 +00:00
jruoho
4970a4c570
Note PR bin/14558.
2012-03-31 11:41:33 +00:00
jruoho
2090d7b596
Adjust as per apb@'s suggestion.
2012-03-29 08:56:06 +00:00
jruoho
06f1efeb34
Few fundamental consistency checks for the abs(3) family.
2012-03-29 06:16:56 +00:00
jruoho
38e01d9198
There was also atoll(3).
2012-03-29 05:56:36 +00:00
jruoho
0d64217da5
Few naive consistency checks for the atoi(3) family.
2012-03-29 05:42:31 +00:00
jruoho
9ca3e29208
Apparently there is a CVE coming for the bug, so append that to a comment.
2012-03-28 10:38:00 +00:00
jruoho
53263fa593
Add a small test that checks that random(3) does not always return zero when
...
the RNG is initialized with zero. Prompoted by the recent nasty bug in the
OpenBSD libc.
2012-03-28 10:33:57 +00:00
njoly
015162ac4e
Adjust the memset size to not override the nul byte at the end of buffer
...
array.
2012-03-27 07:54:58 +00:00
christos
ea65e6a5bc
PR/41558 has been fixed.
2012-03-25 16:31:51 +00:00
joerg
010e9a3d31
Be UTF8 clean.
2012-03-25 08:17:54 +00:00
christos
52485d00ca
use check_eq instead of require.
2012-03-25 04:11:42 +00:00
matt
c5d3880df0
If one of the tests with eps fails, print the failing eps.
2012-03-23 23:45:31 +00:00
christos
f6f28fd5c6
dholland fixed PR/44927
2012-03-22 18:20:46 +00:00
jruoho
e626461e72
Add a case for PR lib/41558. It is unclear whether this is a bug, but at
...
least it is documented now. Probably it would be better to follow Linux,
where the test case does not fail.
2012-03-18 08:52:07 +00:00
jruoho
a6bc77fdcc
Verify that PR lib/22019 is no longer an issue.
2012-03-18 08:13:57 +00:00
jruoho
68b903fe8f
Add a test case for the old NetBSD 2.0 era PR lib/28324.
2012-03-18 07:33:58 +00:00
jruoho
72ed5c064e
To be on the safe side, use the category/number notation when referring to
...
PRs (otherwise third-party sed-scripts might miss the references). Also
remove white-space.
2012-03-18 07:14:08 +00:00
jruoho
8b18a8bf82
Move the references to PRs from code comments to the test description. Once
...
ATF has the ability to output the metadata in the HTML reports, it should be
easy to traverse between releng and gnats -reports via links.
2012-03-18 07:00:51 +00:00
jruoho
4022a4fac5
Get rid of the weird macros.
2012-03-18 06:20:51 +00:00
christos
540890c60f
this should be fixed.
2012-03-18 02:14:16 +00:00
christos
5d71dc0bd6
mention the PR# in the description like everyone else.
2012-03-17 21:33:13 +00:00
christos
c0e9e1ef0b
this has been fixed.
2012-03-17 20:12:09 +00:00
christos
10f65af6f8
annotate the PR that failed, and has been fixed.
2012-03-17 20:10:08 +00:00
christos
4ad00d05fc
This does not fail anymore. Explain why the test was modified.
2012-03-17 20:06:46 +00:00
jruoho
0a082b37fe
Move the _lwp_ctl(2) preemption counter check to the right place.
2012-03-17 17:23:34 +00:00
jruoho
6aa27f04c2
Add few basic tests for realpath(3).
2012-03-17 16:40:14 +00:00
nakayama
83109d5c7b
Use toolchain awk to make them buildable on Solaris 10.
2012-03-17 12:42:31 +00:00
jruoho
4608dbc06e
PR kern/46077 was fixed; remove xfail.
2012-03-17 08:37:08 +00:00
matt
a030baf591
Allow testing of exec pages on PowerPC BookE.
...
Make return_one actually do the right thing.
2012-03-16 08:51:47 +00:00
matt
e04c99d5d7
This is no longer expected to fail.
2012-03-16 08:14:11 +00:00
matt
ae11ed12ab
Don't rely on INT_MAX being unmapped. Use mmap to get a page and then unmap
...
it. Then use that address for msync.
2012-03-16 06:15:17 +00:00
joerg
66dd2755f5
Add __printflike attribution to use vprintf and friends with an argument
...
as format string.
2012-03-15 02:02:20 +00:00
joerg
a42982fe46
Fix format strings to properly quote %.
2012-03-15 01:44:44 +00:00
joerg
861f8848de
Mark w_printf as __printflike and fix a format string error.
2012-03-15 01:44:07 +00:00
jruoho
520158817c
Skip the ENOMEM/RLIMIT_MEMLOCK case when doing mlockall(2).
2012-03-14 11:50:52 +00:00
jruoho
c8e82969d6
Use atf_tc_skip().
2012-03-13 06:37:03 +00:00
joerg
e07445e070
Also exercise pthread_attr_setstacksize.
2012-03-12 20:17:16 +00:00
njoly
d6926b0191
Use ATF_CHECK_ERRNO in setrlimit_perm().
2012-03-11 23:26:22 +00:00
jruoho
b0fb6f41df
And finally, fix boolean logic in the previous.
2012-03-11 06:36:05 +00:00
jruoho
fdacd78abe
Fix previous: curiously enough, i386/qemu is not affected, so use the
...
"system(3) hack" to identify Qemu.
2012-03-11 06:32:53 +00:00
joerg
049fba3c32
No more -lrumpkern_ksem.
2012-03-10 21:58:49 +00:00
jruoho
f24e4366aa
Point to PR port-i386/46108 when failing on i386.
2012-03-10 20:11:01 +00:00
joerg
7baa2850f5
It is perfectly valid for sem_wait to be interrupted, so loop on EINTR.
2012-03-09 19:46:37 +00:00
joerg
7d36dfce1b
PR 43452 no longer applies.
2012-03-09 14:25:34 +00:00
joerg
4acff4c01b
Implement sem_timedwait.
2012-03-08 21:59:24 +00:00
joerg
d1de8de689
Remove libpthread's semaphore implementation and always use the kernel
...
one. The implementation doesn't provide an async-safe sem_post and can't
without a lot of work on the pthread primitives.
Remove bogus time out requirement in test case, it should have been
a "known failure" if anything.
2012-03-07 23:31:44 +00:00
jruoho
75a00e2db4
Check the error values from listen(2), incl. case for standards/46150.
2012-03-07 07:24:05 +00:00
jruoho
c8dfa194fd
A test case for serious PR kern/38889: crash on open/mmap/close of block
...
device. The test case is skipped for the time being as it replicates the
panic described in the PR (tested on NetBSD/amd64 6.0 BETA).
2012-03-06 11:02:55 +00:00
jruoho
7ee67ae065
A test case for PR kern/46077: fstat() returns EINVAL on dup'd connected
...
socket. Expected failure on NetBSD x86, 5.0 - 6.0. Does not fail on Linux.
2012-03-06 10:32:15 +00:00
pgoyette
a885f06423
Remove an escape sequence that was introduced by accident.
2012-02-28 08:58:39 +00:00
jruoho
b949b4c07e
Fix wrong type.
2012-02-28 06:09:48 +00:00
christos
0eef4e1ec0
add a test to verify that snprintf float does not leak.
2012-02-26 23:14:26 +00:00