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
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
matt
e538011342
This is no longer broken for macppc.
2011-02-07 09:40:52 +00:00
pooka
3bc662fecd
underlying condition has been fixed
2010-12-30 22:23:13 +00:00
christos
bfb58157c3
adjust errno after kernel change to be EINVAL
2010-12-06 16:37:25 +00:00
pooka
f5c0e73abf
RNDADDDATA2 doesn't xfail anymore.
2010-12-04 17:41:18 +00:00
pooka
f642190056
Add test case for suspected reason behind kernel panic described
...
in PR kern/44190
2010-12-04 17:38:42 +00:00
pooka
984ea70871
Add another set of problematic offsets from the quoted thread.
2010-11-15 22:01:44 +00:00
pooka
44198575b7
add necessary libs for t_posix_fadvise
2010-11-11 17:36:57 +00:00
pooka
f5449a5597
Actually, add a full tc for operating on fd's backed by regular
...
files (as opposed to pipes and devices).
2010-11-11 15:08:07 +00:00
pooka
7c8241e470
Add expected failure test for posix_fadvise() panic reported by yamt
...
on source-changes-d.
2010-11-11 14:50:58 +00:00
pooka
d4a18bf9e3
another long-running test, so give it some buffer
2010-11-08 21:38:13 +00:00
jmmv
decf2b5e0f
Adjusts tests after import of atf-0.12:
...
- The use.fs property is gone.
- Mark the tests/fs/t_create:attrs test as broken when using the default
unprivileged-user:_atf setting. This probably deserves a fix somehow
but I'm not sure at this point.
2010-11-07 17:51:16 +00:00
christos
0f10aa9dce
add Makefile.inc everywhere so that we can set WARNS=4 by default. Amazing
...
how many bugs this found :-)
2010-11-03 16:10:19 +00:00
pooka
937f490267
retain pr number in comment
2010-08-04 14:28:28 +00:00
pooka
d53b948607
fixed in kern_descrip.c:1.204
2010-08-04 14:26:18 +00:00
pooka
a8c7d81755
test case for PR kern/43694
2010-08-02 10:29:48 +00:00
jmmv
fc6db98b3b
Add a couple of simple tests for sigaction(2): one for the case where flags
...
is set to 0 and the other for the case where we set SA_RESETHAND.
The latter test is intended to expose PR port-macppc/43619 and is marked as
an expected failure on such platform.
2010-07-14 21:47:06 +00:00
jmmv
9d0b4b5bb8
Get rid of static Atffiles and let bsd.test.mk generate them on the fly.
2010-07-13 21:13:21 +00:00
jmmv
e834f57d5e
Properly mark some test cases as having a cleanup routine. Stupidity of
...
the API? Most likely; will revise it.
Fixes atf-run breaking when running t_psshfs. This does not resolve the
underlying issue though, which is atf-run getting confused trying to
unmount the temporary mount point by itself (I think). (I'm now wondering
if atf should be bothering about unmounting stuff at all. Maybe not. It is
a tricky and uncommon thing.)
2010-07-05 16:27:08 +00:00
jmmv
7562f3f929
Replace custom xfail settings with the new expected failure support in
...
atf 0.10.
2010-07-03 08:18:30 +00:00
pooka
59b613aa00
xfail test for kernel panicky in PR kern/40688
2010-06-28 19:03:59 +00:00
pooka
4b7b7791c8
Fix silly test. First it tests that it can't "cd ..", then it
...
wants to "cd .." to complete the test. CANNOT HAVE BOTH!
2010-06-12 13:31:35 +00:00
jmmv
6b84fb92ac
atf-0.9 introduces an use.fs test-case property to allow tests to write to
...
their work directory. The purpose is to be able to know which tests intend
to touch the file system and to allow a minor optimization in atf-run.
Define use.fs=true for all those tests requiring it. (This highlights that
some tests currently require modifying the file system but conceptually
they shouldn't be... which leaves room for further improvements/cleanups
later :-)
2010-06-04 08:39:40 +00:00
pooka
d377aeaac4
test extattrctl kernel panic (kern/43328)
2010-05-21 16:47:45 +00:00
uebayasi
75fe826dc9
CPPFLAGS.* is per *.c, not per ${PROG} or ${LIB}.
2009-12-08 15:20:20 +00:00
pooka
1b05a6d80a
Add test case for PR kern/42020:
...
t_rnd (1/1): 1 test cases
RNDADDDATA: Failed: Test case did not exit cleanly: Abort trap (core dumped)
Failed test cases:
t_rnd:RNDADDDATA
2009-09-08 20:37:45 +00:00
jmmv
d142d343c8
ipf does not live here; it is in the parent directory. Spotted by njoly@.
2009-02-27 07:32:33 +00:00
jmmv
99635d94f8
Add the kernel-level tests developed by Lukasz Strzygowski as part of the
...
atfify GSoC 2008 project.
2009-02-20 21:39:57 +00:00