Commit Graph

90 Commits

Author SHA1 Message Date
matt
b9e582e94c Don't build tests that depend on RUMP if BSD_MK_COMPAT_FILE is defined. 2015-06-22 00:05:23 +00:00
riastradh
d1c2f2cc13 Use <sys/rndio.h> for rnd ioctls. 2015-04-13 22:24:34 +00:00
christos
d0b8ae57c5 bump warns. 2015-01-14 22:22:32 +00:00
christos
f7afbc7f00 PR/48958: rudolf: EVFILT_VNODE filter miscounting hardlinks (add test) 2015-01-14 22:22:14 +00:00
tls
ea6af427bd Merge tls-earlyentropy branch into HEAD. 2014-08-10 16:44:32 +00:00
gson
643acb6d0e Test that reading a CTLTYPE_INT sysctl variable into a buffer that is
too small returns ENOMEM, and that reading it into a buffer that is
large enough returns the expected sizeof(int) bytes of data.
2014-08-09 07:04:03 +00:00
he
f693807fd8 Fix static linking for the tests: -lrump is also used by -lrumpuser,
so we also need -lrump after -lrumpuser.  Fixes build for sun2.
2014-06-10 04:28:39 +00:00
martin
36cb4c7daa Skip the curtain test case if curtain is not enabled and we would not
be able to restore it to its old value later due to running at securelevel
above 0.
Previously this would fail and leave curtain enabled untill next reboot (but
causing further runs of the test to suceed, just to maximize confusion).
This went unnoticed initial since most modular test kernels run with options
INSECURE to allow exercising the kernel module loader.
2014-04-28 08:34:16 +00:00
jmmv
bcb71d7e8b Make cleanup routines actually work.
The only way to pass global state from the body to the cleanup is via the
file system.

Fixes leaks of global system resources (in all cases, given that the body
does not by itself clean things up).
2014-03-02 20:13:12 +00:00
jmmv
c6a5f6dd5a Remove unnecessary and broken cleanup routine. 2014-03-02 19:56:48 +00:00
christos
d56fcfc956 fix unused variable warnings 2013-10-19 17:45:00 +00:00
skrll
114c94b6cd Fix msgsz confusion. 2013-07-24 11:44:10 +00:00
gson
321ad68594 Don't rely on "kill -0" to check whether a background shell command
has exited; it does not work reliably because the process may still
exist as a zombie.  OK mlelstv.
2013-05-31 14:40:48 +00:00
mlelstv
3a4772dd1f shorten fileops test further
add new test that verifies locking of the mount list.
2013-04-28 15:49:58 +00:00
mlelstv
1526e77e21 shorten test to not time out on our test infrastructure. 2013-04-27 07:45:07 +00:00
mlelstv
5319147235 Now use correct test files and pass child failures to test function. 2013-04-20 09:00:03 +00:00
mlelstv
86479a1389 First attempt at stress testing umount of a busy disk. 2013-04-16 22:05:44 +00:00
martin
0ed572c9e9 getsockname() needs a socklen_t, not a size_t 2013-02-28 20:41:21 +00:00
martin
f368c7a2de Add a testprogram for PR 47598. 2013-02-28 15:31:22 +00:00
pgoyette
d5bb255f0c Fix the error message handling. Thanks to Christos for noticing. 2013-02-20 02:22:48 +00:00
pgoyette
ab7a59749e Replace printf() in child process with a simple write(STDERR_FILNO,...)
Thanks, Joerg.
2013-02-19 22:44:27 +00:00
pgoyette
a3217a378f Rather than just sleeping and hoping that all the sub-processes are
ready to be ptrace()d, use a positive barrier.
2013-02-19 04:58:40 +00:00
pgoyette
7dec801027 White-space in for(...) loops.
Use #define instead of static variables to define test parameters.
No functional change.
2013-02-19 04:46:46 +00:00
pgoyette
593938d6da Create a variable for max number of passes to make. While we're here,
reduce the pass-count from 100 to 50;  this is more than enough to prove
that the test is working, and helps reduce the ever-increasing time it's
taking to run the entire test suite.
2013-02-19 03:22:54 +00:00
pgoyette
2fde625529 Wait a little bit after fork()ing the lockers to give them a chance to
get started before trying to ptrace(ATTACH).  Otherwise, the traced
process doesn't seem to resume properly upon ptrace(DETACH) and on the
next pass the ptrace(ATTACH) just hangs forever, causing the test to
time-out.

XXX The failure-to-resume-properly might actually be a kernel bug that
we need to follow up on.  But for now, let's make the test work as
intended.
2013-02-19 00:54:47 +00:00
pgoyette
706bd0b309 Check that we did get EDEADLK error, and fail immediately if we did not. 2013-02-18 20:59:19 +00:00
joerg
f611942e77 Unbreak the NOTE_TRACK event of EVFILT_PROC. When attaching to the child
process, proc_find can't be used as the child is still in state SIDL.
2012-11-17 21:55:24 +00:00
pgoyette
8b483e6488 Add missing '+' so we include t_lock as well as t_lockf and others.
Should fix the build break.
2012-11-07 16:36:49 +00:00
pgoyette
7206730159 Add ATF version of the file locking test 2012-11-07 14:00:38 +00:00
nakayama
b826e4d970 Fix MKRUMP=no build.
librt is unrelated to rump.
2012-11-07 05:13:45 +00:00
pgoyette
3c7f7eee04 Use an ATF_TC_CLEANUP() routine to delete the mkdtemp() directory even
if the test case fails/exits sooner.
2012-11-06 19:35:38 +00:00
pgoyette
689370802f Replace the atexit() routines with ATF_TC_CLEANUP()
Factor out the generation of token_keys to a separate routine, called
from each test case.  And make sure we remove the mkdtemp()-created
directory after we're finished with it.
2012-11-06 18:31:53 +00:00
apb
2bf0b7739b use mkdtemp() instead of mktemp(). 2012-11-06 13:55:03 +00:00
pgoyette
c168fbbf95 Convert to ATF format the old src/regress/ style tests for Sys V IPC 2012-11-05 04:09:14 +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
christos
cb461c6808 Exclude tests that use rump 2012-08-08 13:57:05 +00:00
jruoho
543143cf18 Move more PR references from comments to ATF's "descr". 2012-03-18 09:46:50 +00:00
jruoho
0a082b37fe Move the _lwp_ctl(2) preemption counter check to the right place. 2012-03-17 17:23:34 +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
martin
0ce98f42a7 Move posix_spawn tests to lib/libc/gen/posix_spawn - they test both libc
and kernel, but that is an implementation detail unrelated to the tests
themselfs.
Ok: releng
2012-02-13 21:03:06 +00:00
martin
19f52532ad Add userland part of posix_spawn. Libc functions imported from FreeBSD.
Based on Charles Zhang's summer of code project.
2012-02-11 23:31:22 +00:00
para
89c9828deb converting extent(9) from malloc(9) to kmem(9)
preceding kmem-vmem-pool-uvm patch

releng@ acknowledged
2012-01-27 18:52:47 +00:00
christos
408524dea5 Add a test for the kernel snprintf. 2011-11-24 01:46:40 +00:00
jruoho
d79436d44f Move the sigaction(2) test to the right place. 2011-10-15 07:00:48 +00:00
jruoho
d7cfdec1a4 Move the ucontext(2) test to the right place. 2011-10-15 06:54:52 +00:00
jruoho
e6064fc127 Move the writev(2) test to the right place. 2011-10-15 06:50:52 +00:00
jruoho
2a39986da0 Move the clock_gettime(2) timer test to the right place. 2011-10-15 06:42:16 +00:00
jruoho
175ae78538 Follow the design principles of tests(7) by merging 't_poll3w' to 't_poll'
as a test case instead of separate file.
2011-10-15 06:33:45 +00:00
jruoho
04c8b02c8d Move the mkdir(2) test to the right place. 2011-10-15 06:26:33 +00:00