pooka
dd96c7dab8
Make the shovel threads resilient to file server exit.
2010-11-01 16:27:07 +00:00
pooka
110455ef9e
Create the process we use later in the test. Otherwise cwd doesn't
...
go right and the test fails because of attempting to create files
in the wrong directory.
2010-11-01 14:04:02 +00:00
pgoyette
4b71a48296
Fix format strings so it builds on amd64
2010-10-31 22:33:16 +00:00
pooka
bc79809067
Since rump implicit threads now bind to proc1 instead of proc0, we
...
need our shovel threads bound to proc1 instead of proc0 in order
to have access to the same set of descriptors as the implicit thread
which opens the fd in the rump kernel.
Also, sprinkle some printfs and make failure more dramatic.
fixes the puffs tests. pointed out by pgoyette.
2010-10-31 22:05:35 +00:00
he
4613532253
There's apparently a circular dependency between -lrump and -lrumpuser.
...
This poses problems when linking statically, as for sun2. Add -lrump
also after -lrumpuser, so that this links statically as well.
2010-10-31 13:54:31 +00:00
pooka
a745e32571
implicit pid is 1 instead of 0 now
2010-10-29 15:32:51 +00:00
njoly
a62c9cdf52
Add '-n' option to h_df helper tool to avoid picking wrong values if
...
the tested system has a similar mounted file system. Solve PR/43871.
2010-10-29 14:43:10 +00:00
njoly
5d63576039
Make putenv(3) fails with EINVAL for a null pointer, or for a string
...
that either miss or start with a `=' character.
Adjust man page and testcase accordingly.
2010-10-25 20:35:36 +00:00
pgoyette
c829d16824
Due to timing discrepancies desribed in PR kern/43997, tickle the
...
watchdog just a little bit sooner. This maintains the spirit of the
test while avoiding the actual bug. This can be reverted once (if)
the PR is fixed.
2010-10-24 13:16:12 +00:00
pgoyette
7127b715c2
Add a third test-case to verify that disarming of the watchdog works.
2010-10-24 13:11:41 +00:00
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