jmmv
b27e7b1e81
Oh, wow. Loads of broken ipf test cases that went unnoticed because they
...
were unchecked errors. Fix them.
These have been caught by the upcoming version of atf, which explicitly
does 'set -e' in shell test programs.
2010-10-19 16:36:36 +00:00
njoly
4c968434a3
Make setenv(3) follow the standard, by rejecting invalid strings. It
...
now fails with EINVAL errno when variable is NULL, empty or contains
an `=' character; or value is NULL.
Adjust the man page accordingly, and exercize them in the existing
environment testcase.
2010-10-16 11:23:41 +00:00
pooka
936f8998cf
Use actual buffer size instead of sizeof(char *). Makes the test
...
work on non-64bit platforms.
2010-10-13 11:19:28 +00:00
pooka
6dec45da47
fix -DDEBUG
2010-10-13 10:31:00 +00:00
christos
6188013961
use "RZ()" instead of ATF_CHECK(), since ATF_CHECK does not deal with errno.
...
This is repulsive, specially the part about hard-coding the h_macros.h file
in the c code.
2010-10-11 15:48:57 +00:00
christos
99101ab637
don't use err(), from pooka.
...
CV: ----------------------------------------------------------------------
2010-10-11 15:16:01 +00:00
haad
06d49ab5e3
Import new test program for device-mapper driver it currently call dm_version_list
...
and dm_targets_list ioctl to test if dm driver inside rump works.
It will be disable for now, because I need to find out why if I run this
test by atf-run it fails while running h_dm by hand works.
XXX. component.c in rump/libdm calls devsw_attach before dm_modcmd can do
that therefore unmodified modcmd returns error.
2010-10-06 11:24:55 +00:00
christos
37a7ff776d
Add tests for putenv(3)
2010-10-01 20:12:20 +00:00
tnozaki
93b7363c93
add fmemopen(3) derrived from POSIX:2008.
...
libc minor bump.
2010-09-24 09:21:53 +00:00
christos
1db2d29e54
unit test for environment. Grr, someone should make fixing the sets easier
...
otherwise people are not going to want to write unit-tests.
2010-09-23 17:38:08 +00:00
he
0549224c7a
Reorder the library specifications, so that we don't depend on the
...
library dependencies recorded in shared libraries, allowing these
to be linked statically as well.
2010-09-23 09:39:14 +00:00
he
16b74f200d
Do symbol renaming for these bits as well, so that we don't get
...
link-time errors caused by conflicts with normal user-space libraries
when we link statically.
The tests still pass for i386 after this set of changes, and this now
builds for sun2 (after a few more changes).
2010-09-23 09:38:14 +00:00
martin
92474b670c
Query the raw partition at runtime
2010-09-11 16:03:41 +00:00
christos
5472a32d66
glue glob tests
2010-09-09 22:25:38 +00:00
njoly
7601b30df9
s/dirs/symlinks/ in USES_SYMLINKS message.
2010-09-09 11:42:52 +00:00
pooka
0e59fd4080
hold object lock across page unbusy
2010-09-09 09:59:48 +00:00
pooka
6a3566f5c8
vm object must be locked during page allocation.
2010-09-08 20:40:24 +00:00
pooka
d85e9c34b1
+tc (turns out the bug was elsewhere, but a test is always a test)
2010-09-07 17:09:28 +00:00
pooka
192b53ec54
fill in PR number: kern/43843
2010-09-06 15:27:18 +00:00
pooka
b28267edb9
symlink to a zero-len target (and watch tmpfs go kabloom)
2010-09-06 15:21:34 +00:00
christos
758507e1aa
Add tests for GLOB_STAR
2010-09-06 14:41:21 +00:00
he
5b0dfc8c63
Re-order libraries so that this links statically as well.
2010-09-02 16:55:15 +00:00
pooka
a3acbf5ec9
Actually use the imagename parameter. Also, fail with err instead
...
of atf_tc_fail since we are not directly under the control of atf.
2010-09-02 15:13:55 +00:00
pooka
5297756997
check that curlwp for an implicit context is NULL
2010-09-02 09:57:34 +00:00
pooka
52e6ad15e6
tests for rump_lwproc
2010-09-01 21:18:14 +00:00
pooka
2a47331e63
update to new rump lwp/proc interfaces
2010-09-01 19:41:27 +00:00
pooka
46d9a8715d
Add RZ(), which is like RL() except that it checks against 0 and
...
uses the return value as the error number instead of errno.
2010-08-31 17:21:14 +00:00
pooka
c825a763b1
Make tcount volatile since a signal handler plays with it.
2010-08-30 08:30:17 +00:00
wiz
903fc89bbb
Use explanation for GOP_ALLOC in message from version 1.1.
...
Ok pooka@.
2010-08-28 10:56:11 +00:00
pooka
27e297079d
poll the putter fd instead of doing a blocking read. Long story
...
short: we don't have to wait for the fs syncer to run for the
close to succeed.
2010-08-27 12:42:21 +00:00
pgoyette
c70e410288
Set the cmsg_len and msg_controllen in cmsg_sendfd testcase to match
...
the usage in the cmsg_sendfd_bounds case. This test now passes on an
amd64 machine.
Change suggested by and OK'd by pooka@
2010-08-27 10:03:14 +00:00
pooka
faf9d0caed
tests for builtin modules
2010-08-27 09:56:40 +00:00
pooka
ad209aacd5
Skip the full test for puffs now that we can (yes, atf issue #53 )
2010-08-27 08:15:30 +00:00
pooka
d3df95fde3
Now that atf issue #53 has been fixed, remove the
...
child-must-dies-before-parent kludge.
2010-08-27 05:34:46 +00:00
pooka
1457068cd6
chdir() once per process is enough, no need to do it for every
...
thread (and doing so would cause occasional failures when some
thread would cd out of the test mountpoint while another thread
was still running in there).
2010-08-26 18:06:44 +00:00
pooka
cf1237d3ad
setsockopt() wants int instead of size_t. Should fix this on LP64.
2010-08-26 17:24:14 +00:00
pooka
26f689f095
Put the workaround for PR kern/43799 into the common nfs unmount routine.
2010-08-26 15:07:16 +00:00
pooka
478209477d
include some necessary headers to fix build
2010-08-26 08:19:18 +00:00
pooka
6ec601c384
* fail with errnos
...
* in case unmount fails, call rump_pub_vfs_mount_print() to print
mountpoint status and dump active vnodes.
2010-08-25 18:16:06 +00:00
pooka
4541e13321
Start many more threads for the renamerace since it seems to catch
...
more errors.
Add a sleepkludge to deal with NFS's sillyrename brokenness.
2010-08-25 18:11:20 +00:00
jmmv
b283757fe6
Convert the libdes tests to atf.
2010-08-25 16:46:36 +00:00
pooka
5335766609
Test for cache sync noises after disk is ejected.
...
test case for PR kern/43785
2010-08-24 11:29:45 +00:00
pooka
b846a386dc
Add a delay between startup of pinger and pingee here too.
...
XXX: there's apparently some race condition which appears to trigger
if a broadcast arp arrives around the same time as the arpwhohas
is sent. This causes original packet to never be sent by the
arpwhohas requestor. If this rings a bell to someone, please let
me know.
2010-08-23 10:49:27 +00:00
pgoyette
bb793fe2e6
Fix botched update.
2010-08-21 13:57:41 +00:00
pgoyette
60bf661b9d
Add a new atf test-case to check that recursive module calls actually work.
2010-08-21 13:21:48 +00:00
pooka
909673cfa9
Start adding some I/O tests. This one does a sparse write to the
...
second page on a file, then writes the first, and finally checks
it can read something expected. Adapted the from program supplied
by yamt in PR kern/36429.
2010-08-19 02:36:02 +00:00
pooka
217080730a
.. put a timeout here just in case the receive does not increase
...
the counter.
2010-08-18 21:23:48 +00:00
pooka
b3495ecc48
Add a test for the "ping of death". Declare the test a success
...
when the receiver increases the "ip toolong" stat counter.
2010-08-18 21:22:34 +00:00
pooka
cfe11fb280
send pings in ascending order
2010-08-18 17:49:03 +00:00
pooka
9a3c295ef2
Add a two-way floodping test and a test which sends icmp echos with
...
various sizes.
2010-08-18 16:39:22 +00:00