Commit Graph

622 Commits

Author SHA1 Message Date
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