christos
6298c31a51
add missing includes
2012-11-04 23:37:02 +00:00
pgoyette
938a6ff547
Convert the old src/regress/mqueue test to ATF
2012-11-03 05:19:33 +00:00
christos
a1801097ec
Avoid ssp re-definitions for the functions we provide.
2012-10-31 13:48:12 +00:00
njoly
60dc3e4d2e
Add a small testcase for PR/47068.
2012-10-15 17:49:58 +00:00
bouyer
f800b89bbc
Add test cases for the bug fixed in sys/ufs/ufs/ufs_quota2.c 1.35:
...
when a on-disk block/inode allocation triggers allocating a new
quota entry, the new quota entry is not in the quota2 header block,
and the allocation will later be denied, the changes to the quota block would
not be flushed to disk, leading to list corruption (detected by fsck).
2012-09-30 21:26:57 +00:00
skrll
2392c04529
Simplify
2012-09-27 09:56:21 +00:00
martin
d70931dac7
Add missing include <stdlib.h>
2012-09-27 08:19:18 +00:00
joerg
fe9380cfbd
Add regression test for cdbr(3) and cdbw(3).
2012-09-27 00:38:57 +00:00
christos
908d2159b9
make the test more precise.
2012-09-27 00:37:56 +00:00
joerg
aef403d694
Fix year.
2012-09-26 22:23:30 +00:00
jruoho
85dbe713e8
Remove expected failures that no longer fail (probably due a Qemu update).
2012-09-26 07:24:38 +00:00
joerg
4edfbdbb40
Simplify the BDZ compression function, making it smaller at the same
...
time. Fixes a bug where non-minimal hash functions could be created.
Add regression tests for BDZ, including the map output functionality.
2012-09-25 20:53:46 +00:00
joerg
2b3d1ee8a7
Update LLVM/Clang snapshot to r164464. This adopts the GCC options for
...
the SSP parameters and a not-yet-default rewrite of SROA.
2012-09-23 17:22:22 +00:00
blymn
a76c5dee4e
* Add scanw family function calls as input functions
2012-09-19 11:51:56 +00:00
blymn
d537772cd3
* Fix mvscanw return
...
* Fix the *vline family of calls, one argument is chtype not int
2012-09-19 11:51:08 +00:00
martin
c7ba7e0c07
Try to make this test gracefully fail when npftest is not available
2012-09-18 08:28:15 +00:00
plunky
baa3f70feb
correct spelling of file to clean
2012-09-15 16:22:58 +00:00
joerg
69d9b49983
Workaround infrastructure bug where additional rpath flags are added for
...
/lib, resulting in linker warnings for the compat case.
2012-09-13 21:13:34 +00:00
martin
001611b06f
ATF wrapping of the npf tests
2012-09-12 14:06:31 +00:00
manu
bba80928a8
setcontext() used to be incompatible with -lpthread since it affected
...
the TLS pointer, therefore wrecking the pthread environement.
Some ports had _UC_TLSBASE flag or equivalent (_UC_UNIQUE on alpha)
that controlled whether setcontext() would change the TLS pointer.
This change let libpthread override setcontext() with its own version
that unsets _UC_TLSBASE, enabling safe usage of setcontext() with
-lpthread.
We also have the following required changes here:
- rename alpha's _UC_UNIQUE into _UC_TLSBASE
- add _UC_TLSBASE definition in header file for all ports
(powerpc, sh3, sparc and sparc64 lack the implementation for now)
- introduce a libc stub that can be overriden for setcontext()
- modify MD libcs swapcontext() implementations so that they use the
setcontext() libc stub instead of doing a plain system call.
While we are there:
- document various MD _UC_* flags in header file
- add libc and libpthread tests for swapcontext() behavior
(hopefully helpful to spot MD problems introduced with this change)
Future work:
- Deciding whether kernel support or _UC_TLSBASE should be added for
powerpc, sh3, sparc and sparc64 is left to portmasters
sparc64
Approved by core@
2012-09-12 02:00:51 +00:00
adam
af67173111
Fix building with MKCOMPAT=no
2012-09-10 11:29:06 +00:00
martin
2b68f1748c
Make this compile on archs where VM_MIN_ADDRESS is not defined (or not
...
exported to userland)
2012-09-08 12:25:05 +00:00
martin
69c011c56b
Deal with architectures defining VM_MIN_ADDRESS > 0.
...
Add additional error code tests using a pointer one page past current brk.
2012-09-07 20:27:12 +00:00
njoly
c45e6c06f4
Adjust msdos fat32 image creation to match cluster count requirements.
2012-09-06 12:51:47 +00:00
alnsn
b8a85c6989
Replace usleep(500000) with a synchronization over a pipe.
2012-09-04 22:31:58 +00:00
alnsn
db95257927
Fix test timeout.
2012-09-03 21:27:14 +00:00
christos
1375b73fd3
whitespace
2012-09-03 15:32:18 +00:00
pooka
ebca36f90a
Hook ZFS tests to MKZFS instead of a homegrown variable.
2012-08-31 14:46:53 +00:00
pgoyette
af44ca577f
There's a known-but-unresolved race condition in here somewhere that
...
causes these tests to sometimes deadlock. Since they run really fast
when they are successful, it doesn't do any good to wait for the
default 5-minute timeout. So explicitly set timeout for these tests
to just 30 seconds.
2012-08-31 04:02:21 +00:00
gson
8b7093cae5
Skip test requiring /usr/bin/mandoc if it does not exist, as is the case
...
when text.tgz has not been installed.
2012-08-28 15:22:18 +00:00
jmmv
80b30d8cdf
Add placeholder test programs for share/mk files.
...
The main goal of this change is to simplify the further addition of test
cases for the share/mk infrastructure by adding a few placeholder test
programs to the tests tree.
To not leave these test programs empty, I have added a bunch of extremely
simple test cases to them.
2012-08-26 23:03:20 +00:00
jmmv
cdcce7d462
Add a new "-P prefix" option to mkdep(1).
...
This option prepends the string given in prefix to every target
filename. This is useful for programs that have source files in
multiple subdirectories and a single Makefile that references all of
them explicitly (without using the VPATH functionality because there
can be files with the same name in each subdirectory).
2012-08-26 22:37:19 +00:00
jmmv
46d1235f5d
h_ffs_server.c is not a test program. Remove unnecessary traces of atf.
2012-08-24 20:25:50 +00:00
jmmv
e7d178251c
Sanitize the regex test cases.
...
- Merge h_regex_att (att.c) and t_regex_att.sh into a single C test program.
The former was really a test program, and the latter just a very strange
driver for it.
- Stop using awk to generate the shell test programs. This is unnecessary
and confusing. Instead, change t_regex.sh to generate the test case
functions on the fly with eval (as done in many other places).
2012-08-24 20:24:39 +00:00
pooka
88392d44db
Add a vfstest zfs attachment. This is a compile-time option,
...
default off, due the large numbers of failing tests (some of them
look like quite trivial failures).
2012-08-20 16:37:35 +00:00
martin
d0ba1a0677
Fix stupid thinko when checking for the availability of options MODULAR
...
and permission to load modules.
2012-08-20 08:07:52 +00:00
martin
f3b7cec914
Be more verbose if we get unexpected error codes from modctl.
2012-08-19 20:54:56 +00:00
alnsn
d52ebd2ff5
Close pipes on exit.
2012-08-16 20:16:06 +00:00
alnsn
16465504ed
Wait for a child to initialise its network stack before sending a ping.
...
Decrease BIOCSRTIMEOUT to 500ms.
2012-08-16 19:42:23 +00:00
pgoyette
1cf0fdecbd
Fix more fallout from the changes to nfsd's command-line options
2012-08-16 12:57:24 +00:00
martin
6d924f6074
Slightly reaarange, so that the 32bit version actually gets compiled
...
and linked with -m32.
2012-08-16 10:14:03 +00:00
martin
324d0ec850
Do not disturb the atf output with debugging echos
2012-08-16 08:39:43 +00:00
alnsn
196af63e15
Test contiguous buffer as well.
2012-08-15 21:36:00 +00:00
alnsn
a5a1874fdf
Add __RCSID and and make a couple of stylistic changes.
2012-08-14 19:40:30 +00:00
alnsn
e7e64dcaa1
Build and install t_bpfilter.
2012-08-14 19:13:54 +00:00
alnsn
a385466d91
Add t_bpfilter test. At the moment, it only checks
...
that bpf program can read bytes from mbuf chain.
2012-08-14 19:09:15 +00:00
pgoyette
4d0da3bb46
Remove nfsd options as they are no longer needed.
2012-08-13 18:02:32 +00:00
christos
e3b23739ec
add fdpass tests
2012-08-13 11:15:05 +00:00
martin
66c66d2d86
Make use of the new MODCTL_EXISTS check to query kernel wether (and why
...
not) we can load modules.
2012-08-13 08:07:03 +00:00
christos
cb461c6808
Exclude tests that use rump
2012-08-08 13:57:05 +00:00
riastradh
57dd555999
Fix ffs_fstest_delfs's error branch for rump_pub_etfs_remove.
...
rump_pub_etfs_remove returns an error code, rather than setting errno
and returning -1.
2012-08-05 02:03:05 +00:00
riastradh
16b71d29d9
Implement link(2) in rumphijack. Add a couple trivial test cases.
2012-08-04 03:56:47 +00:00
njoly
734339d201
Add testcase for PR/46743
2012-07-28 16:08:39 +00:00
joerg
23fe3eb28c
Add basic regression test for nbperf(1)
2012-07-22 20:38:20 +00:00
darrenr
30a942f180
test cases n201 and n202 were removed on import of 5.1.2
2012-07-22 16:22:41 +00:00
darrenr
e60fd761ef
Merged IPFilter 5.1.2 into HEAD
2012-07-22 14:33:26 +00:00
darrenr
c9d5dc6c77
Import IPFilter 5.1.2
2012-07-22 13:44:10 +00:00
martin
8f3c15e2f4
Add a test case that (if gcc supports it on the current arch) to compile
...
a PIE binary and see if we can run it.
2012-07-21 12:30:55 +00:00
pgoyette
198966cae9
Add new test cases for entropy-providing sensors
2012-07-19 13:36:18 +00:00
spz
67d12f6407
more MKCRYPTO_IDEA and MKCRYPTO_MDC2 removal (resp, adjustment to IDEA and
...
MBC2 now always being included)
MKCRYPTO_RC5 now builds shared libs, add the missing files to sets
2012-07-14 16:04:04 +00:00
christos
e2d5622544
MKCRYPTO_{IDEA,MDC2} is no more
2012-07-14 04:06:17 +00:00
pgoyette
e048bbf458
Restore the rest of the ipfilter test framework, even if most of these
...
tests are broken. The "golden output" files for these tests need to be
updated.
2012-07-08 14:45:05 +00:00
pgoyette
b437857d4c
Restore one more group of tests.
...
XXX Test i17 was broken previously, and remains broken.
2012-07-08 00:53:01 +00:00
pgoyette
f499e4e2e7
Restore some more tests from ipfilter 5.1.1
...
XXX Test in2 was broken before the ipfilter 5.1.1 import, and is still
XXX broken.
2012-07-08 00:48:29 +00:00
pgoyette
a29385018a
Restore some more of the ipfilter 5.1.1 tests.
...
XXX It appears that ipftest is not handling the policy {,src-,dst-}hash
XXX correctly, so these tests are still marked broken/skipped.
2012-07-08 00:36:46 +00:00
pgoyette
f5d9b1d185
Re-enable some of the ipf tests. The only thing wrong with these tests
...
is that the tests were not re-imported with the rest of ipfilter 5.1.1
XXX There are still some more ipf test failures that need to get resolved,
XXX but at least we'll get some of them back just in case we have a
XXX regression.
2012-07-07 23:29:44 +00:00
christos
291dafda34
tests for recvmmsg
2012-06-22 18:45:23 +00:00
christos
40114b997c
PR/46602: Move the rfc6056 port randomization to the IP layer.
2012-06-22 14:54:34 +00:00
bouyer
c3ff6f17e5
Disable the mmap_block test again, it doesn't panic when mmaping /dev/wd0d
...
only by accident. PR kern/46592.
2012-06-14 17:47:58 +00:00
njoly
e1828ac1bb
Skip sigbus_adraln testcase on alpha unless global
...
machdep.unaligned_sigbus sysctl is enabled.
2012-06-13 11:45:17 +00:00
christos
c38c69a23f
check thread limit
2012-06-12 23:56:19 +00:00
njoly
8d31656afc
New testcase to check limits flags for ulimit builtin.
2012-06-11 18:32:59 +00:00
martin
b0ac20cc38
Degrade all intermediate failures due to memory/resource shortage to
...
"skip" instead of "fail" - only if we get through to the real meat, we
can tell wether mlockall/mincore work or not.
2012-06-08 07:18:58 +00:00
martin
fd9e5c02e3
Revert previous - instead of guessing the amount of needed memory locked
...
limits (often way too high) and skipping the test case if in doubt,
raise the limits as far as we can, and fix a few places in the test where
we could run into the limits and either skip or fail with a reasonable
message.
2012-06-07 09:59:51 +00:00
martin
c1004a7836
Add a basic test for infocmp - this would have cought todays terminfo
...
lossage (PR lib/46553).
2012-06-06 21:23:10 +00:00
martin
7a598c266d
Try to estimate the number of locked pages the mincore() test will need and
...
check it against resource limits, skipping the tests if it probably is too
low.
2012-06-05 08:44:21 +00:00
joerg
fc67b0cd11
Switch terminfo(3) to cdb(5).
2012-06-03 23:19:09 +00:00
joerg
1907ec3a61
Switch device database to cdb(5). Rework ttyname(3) and ttyname_r(3) to
...
depend on new devname_r(3) as heart. Add /dev/pts magic directly to
devname(3). While it can lead to returning non-existing paths, the
behavior is more consistent that way. Drop caching layer in devname(3),
it doesn't buy anything for the common case of having access to the
database. Teach devname(3) proper fallback behavior of scanning /dev.
Create both old-style and new-style database for now in /etc/rc.d/sysdb.
2012-06-03 21:42:44 +00:00
dsl
9ba407934a
Fix build - delete extra &
2012-06-03 10:59:44 +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
jruoho
959e675b20
Make the test pass. It appears that this however does not reproduce the
...
PR kern/46463, even though the command is exactly the same.
2012-05-19 07:30:37 +00:00
jruoho
63e8388028
Clarify this a little.
2012-05-18 15:36:21 +00:00
jruoho
af62c3b4d8
Add a test case for PR kern/46463. From Richard Hansen.
2012-05-18 15:25:25 +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
riastradh
35d57656cd
Adjust t_renamerace now that ext2fs and ffs have good rename.
2012-05-09 00:22:26 +00:00
wiz
4739fc03e4
Adapt to repository move of dist from external/bsd/bzip2 to
...
external/bsd/bzip2/dist.
2012-05-07 08:51:47 +00:00
wiz
3815d29a7f
Finish move of bzip2 from dist/bzip2 to external/bsd/bzip2.
2012-05-07 00:35:25 +00:00
martin
d0518d9cf8
Comment out the expected failure, as it does not trigger anymore.
2012-05-06 17:27:22 +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
manu
ae04a0ba81
Do not set PUFFS_KFLAG_CACHE_FS_TTL for PUFFS tests
2012-04-21 01:03:46 +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
84c32e5f2a
For now, skip module tests if modctl(8) fails either with EPERM or ENOSYS.
2012-04-20 05:41:25 +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
c7358053ef
Add a test case for PR bin/39546.
2012-04-19 18:51:35 +00:00
martin
ca7d70aa58
While we need an absolute path when loading a module (including the .kmod
...
extension), we want the shortname w/o extension for the unload.
2012-04-17 21:39:19 +00:00
jruoho
f95573c233
Return from main() and use EXIT_FAILURE/EXIT_SUCCESS from stdlib(3).
2012-04-17 09:23:21 +00:00
jruoho
ce711fc79d
Avoid zero-length format string.
2012-04-17 06:23:52 +00:00
jruoho
681aa38aee
Adjust.
2012-04-17 05:18:54 +00:00
christos
2e74a3b7d6
simplify
2012-04-15 03:05:57 +00:00
jruoho
f03351f948
Add few more NICs.
2012-04-14 15:13:57 +00:00
jruoho
0a7b1257ab
Fix RCS string.
2012-04-14 12:43:05 +00:00
jruoho
0953dc8744
Add a test case for PR kern/46328 (tested naively with tcpdump(8)).
2012-04-14 12:21:45 +00:00
pgoyette
d2616fb0aa
The k_helper3 program does not need to be (and shouldn't be) installed
...
in its own subdirectory.
2012-04-14 02:46:17 +00:00
pgoyette
84c6871a07
Let's get it right this time.
2012-04-13 15:02:37 +00:00
pgoyette
bfea36353b
Put k_helper3 in the correct location.
2012-04-13 14:54:39 +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
e49dc377ca
Add a helper program that loads a module and returns the errno from modctl(8).
...
XXX: As noted on tech-kern@, the syscall should be modified to fail
consistently with a given predefined errno on non-MODULAR kernels.
2012-04-13 07:05:32 +00:00
jruoho
144c5468dc
Although this does not fail, add a case for the discussion in PR bin/46327.
2012-04-13 06:12:32 +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
jruoho
a74ccce819
Test that sysctl(8) does not segfault, as reported by pgoyette@ on current
...
users.
2012-04-10 02:39:33 +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
njoly
7e04109e7f
New testcase that check file flags with unprivileged credentials.
2012-04-04 18:53:34 +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
njoly
bd5752189c
Add sleep to the list.
2012-03-30 15:49:24 +00:00
jruoho
47dea51ec6
Add regression tests for PR bin/3914 and PR bin/27140.
2012-03-30 09:27:10 +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
jruoho
2e3d44b8f5
Fix another type in the metadata.
2012-03-27 17:57:02 +00:00
jruoho
63dad69a2e
Fix typo.
2012-03-27 12:32:47 +00:00
jruoho
4f5cd33ee1
Mark the failing tests as broken. XXX: If no one is willing to maintain
...
the ipf tests, these should be removed.
2012-03-27 09:27:33 +00:00
jruoho
651e2c6948
Add regression tests for the 1990s bugs PR bin/3538 and PR bin/4841.
2012-03-27 08:16:33 +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
jruoho
1e806afd68
Append a case for (fixed) PR bin/25899. From Min Sik Kim.
2012-03-27 07:39:00 +00:00
jruoho
32204f9f4d
Add a check for old PR bin/2486.
2012-03-27 07:23:06 +00:00
njoly
22d3abd7be
Now that permissions for msdos have been fixed, kill times() special
...
case which was wrong.
2012-03-26 15:13:20 +00:00
njoly
346de04ed8
Initialise permissions mask to a sensible value (0755).
...
While here convert leading spaces to tabs.
2012-03-26 15:10:26 +00:00
christos
9c65f155f8
PR/43597 was fixed
2012-03-25 18:50:19 +00:00
christos
ec4d512c60
ksh trap has been fixed.
2012-03-25 17:30:59 +00:00
christos
ea65e6a5bc
PR/41558 has been fixed.
2012-03-25 16:31:51 +00:00
christos
14758c77e1
PR/41061 fixed
2012-03-25 16:10:13 +00:00
joerg
010e9a3d31
Be UTF8 clean.
2012-03-25 08:17:54 +00:00
joerg
b753e46cc9
Use array access
2012-03-25 06:54:04 +00:00
christos
52485d00ca
use check_eq instead of require.
2012-03-25 04:11:42 +00:00
matt
9b85f61f61
Only descend into ipf if MKIPFILTER != "no"
2012-03-24 01:36:50 +00:00
matt
c5d3880df0
If one of the tests with eps fails, print the failing eps.
2012-03-23 23:45:31 +00:00
matt
c76c9d1fc1
Use SCHAR_{MIN,MAX} for signed char, not CHAR_* since not char are signed.
2012-03-23 23:12:28 +00:00
christos
22ab6602b0
Update to the tests from 5.1.1
2012-03-23 23:08:00 +00:00
njoly
16fc5c7678
Extend times testcase to check for non null time values too.
2012-03-23 09:58:23 +00:00
christos
f6f28fd5c6
dholland fixed PR/44927
2012-03-22 18:20:46 +00:00
njoly
299c989a28
Remove unneeded atf_tc_expect_pass calls.
2012-03-20 18:20:49 +00:00
jruoho
585bdc4958
Add missing text file. Pointed out by P. Welche.
2012-03-20 17:13:44 +00:00
jruoho
2447f335ab
Note PR bin/12838.
2012-03-20 06:30:02 +00:00
jruoho
327776ba0b
Add regression tests for PR bin/12424, PR bin/12316, and PR bin/14253,
...
all fixed long time ago.
2012-03-20 06:18:33 +00:00
jruoho
a4f8c0aaa1
Skip Xen. XXX: There should be a reliable way to detect MODULAR.
2012-03-20 05:50:11 +00:00
jruoho
128cf91305
Remove xfail.
2012-03-20 05:21:45 +00:00
jruoho
f910850c47
As noted by christos@ in rev. 1.4 to t_awk.sh, the "period" test has been
...
broken all along. Fix expected output (tested on Linux, GNU awk 1.3.3).
2012-03-19 13:07:23 +00:00
jruoho
570dcaf1ea
Remove check.
2012-03-19 12:58:41 +00:00
jruoho
3a662fafc9
Add regression tests for PR bin/2642 and PR bin/23836, both fixed long ago.
2012-03-19 07:05:18 +00:00
jruoho
2f989692b9
Add a case for PR bin/41061.
2012-03-19 06:39:22 +00:00
jruoho
9e07384eff
Add a case also for (fixed) PR bin/42261.
2012-03-19 06:21:53 +00:00
pgoyette
0f64aba0db
Finish removing the block of commented-out code from rev 1.31
...
Hello, christos!
2012-03-19 03:33:54 +00:00
christos
59c51f5cec
annotate fixed failures as comments.
2012-03-18 21:49:08 +00:00
christos
3ff17a1b71
say what happened.
2012-03-18 21:23:57 +00:00
jruoho
a2e1561fa4
Add a better check for the previous.
2012-03-18 19:21:53 +00:00
jruoho
0a932255df
Also verify that PR bin/44179 is no longer an issue.
2012-03-18 19:11:30 +00:00
jruoho
fe87c5542d
Now that this works, test also some random exit statuses.
2012-03-18 18:32:16 +00:00
dholland
8412f6f617
Remove xfail as PR 44973 is fixed. (Note that it was Nat Sloss who did
...
the work of figuring out what was wrong.)
2012-03-18 18:09:45 +00:00
dholland
a837eb4f62
Add some tests for selection of line ranges, based on a case that came
...
across the POSIX list a few days ago and some related phenomena.
2012-03-18 15:35:27 +00:00
christos
27215b2b59
test the __type macros
2012-03-18 15:30:59 +00:00
jruoho
1ff69b68e3
Add a case for PR bin/44973.
2012-03-18 12:40:42 +00:00
jruoho
6ab4862c83
Verify that bin/25693 is no longer an issue.
2012-03-18 11:50:55 +00:00
jruoho
0498995f9f
Add a test case for PR bin/28126. Does not fail with GNU sed.
2012-03-18 10:12:30 +00:00
jruoho
543143cf18
Move more PR references from comments to ATF's "descr".
2012-03-18 09:46:50 +00:00
jruoho
4fac6e71e4
Add missing copyright and remove white space.
2012-03-18 09:31:50 +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
bb806cfddc
The problem has been fixed and the test is broken. awk always uses the
...
C locale for LC_NUMERIC.
2012-03-17 23:22:59 +00:00
christos
5d71dc0bd6
mention the PR# in the description like everyone else.
2012-03-17 21:33:13 +00:00
christos
5a7b3f43e8
this does not fail anymore
2012-03-17 21:31:29 +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
hannken
0207daf65f
Starting with Rev. 1.191 of kern/subr_pool.c a pool has to be inactive
...
for at least 10 seconds before it can be reclaimed.
Change the uvmwait test timeout from 10 to 30 seconds so it has a chance
to reclaim memory and succeed.
2012-03-17 18:00:28 +00:00
jruoho
d2d68b21f3
Add '-e ignore" to atf-check(1) and remove xfail. Pointed by njoly@.
2012-03-17 17:39:44 +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
ad9dcd3c99
Deprecate tests/toolchain.
2012-03-17 17:15:28 +00:00
jruoho
6aa27f04c2
Add few basic tests for realpath(3).
2012-03-17 16:40:14 +00:00
jruoho
28604916d4
Deprecate tests/util.
2012-03-17 16:33:10 +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
jruoho
a43eb6ed04
PR bin/42179 was fixed; remove xfail.
2012-03-17 08:34:55 +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
njoly
a3a0bab7f9
Add another testcase that check setting file times with unprivileged
...
credentials.
2012-03-15 12:57:27 +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
jruoho
96d2b606cc
A modctl(MODCTL_STAT, ...) always succeeds, even in non-modular kernels such
...
as Xen domUs. Thus, refactor the code to detect non-modular kernels; when the
other operations (MODCTL_LOAD or MODCTL_UNLOAD) fail specifically with ENOSYS,
this is taken as a hint about non-modularity and the test is skipped.
2012-03-13 05:56:46 +00:00
jruoho
9ddb6ab554
PRs bin/41880 and bin/26453 were fixed, so remove xfails.
2012-03-13 05:40:00 +00:00
joerg
e07445e070
Also exercise pthread_attr_setstacksize.
2012-03-12 20:17:16 +00:00
jruoho
6c201d9091
Remove xfail, as PR kern/44946 was fixed.
2012-03-12 08:14:02 +00:00
njoly
d6926b0191
Use ATF_CHECK_ERRNO in setrlimit_perm().
2012-03-11 23:26:22 +00:00
martin
f3d00566b6
Temporarily remove awk subdir, untill jruoho sorts out the recent commits
...
to the proper dir.
2012-03-11 22:19:53 +00:00
jruoho
21ea49cf59
Skip the tests even if modctl(2) does not fail specifically with ENOSYS.
2012-03-11 19:33:17 +00:00
jruoho
c140670d99
Deprecate tests/util/awk.
2012-03-11 18:38:15 +00:00
jruoho
d4c54b86b3
Move the existing tests from util/awk to usr.bin/awk.
2012-03-11 18:35:59 +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