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
jruoho
599acddbd9
Move the pipe(2) test to the right place.
2011-10-15 06:17:02 +00:00
jruoho
45e23a6a46
Move the posix_fadvise(2) test to the right place.
2011-10-15 06:10:26 +00:00
christos
6f52d919ef
Add a pty test, written by Matthew Mondor
2011-09-24 15:53:01 +00:00
christos
2a18cea9f4
Turn warns on for all tests and fix all the bugs.
2011-06-11 18:03:17 +00:00
tron
3256d5bc1c
Move regression test for PR kern/44986 from "kernel" to "syscalls" as
...
the later directory seems to be a better fit.
2011-05-28 16:12:56 +00:00
christos
15a7fd712a
PR/44896 has been fixed.
...
BTW: We've created a mess here again with the directory structure of the
tests. What goes in syscalls, what goes in sys, and what goes in kernel?
I think we should follow the userland location for paths where those should
be defined, so everything should go into libc/sys.
2011-05-28 15:37:11 +00:00
tron
3b708a2134
Add two test cases for pollts(2):
...
- The first tests basic functionality e.g. timeouts and correct events.
- The second tests whether pollts(2) correctly restores the signal mask.
This test currently fails because of PR kern/44986.
2011-05-28 15:24:49 +00:00
martin
73637f3626
Add TNF license. OK: pooka.
2011-04-26 20:42:01 +00:00
martin
8d374d551c
Simplify
2011-04-26 18:50:53 +00:00
martin
40b302ddec
Add two simple testcases to exercise pty/tty communication.
2011-04-09 11:55:59 +00:00
martin
c5e67b6b14
No longer expected to crash the kernel.
2011-04-09 06:36:03 +00:00
pooka
040c5b8d22
Use /dev/null instead of stdin for fd. Otherwise if the tests are
...
run with stdin as a pipe (e.g. from cron) the test fails with ESPIPE.
2011-03-14 20:41:25 +00:00
pgoyette
107fdb641e
Add tests for verifying the recent changes to ps_strings
...
From joerg@ with atf-ification from myself.
2011-03-05 18:14:33 +00:00