Commit Graph

1406 Commits

Author SHA1 Message Date
jruoho
75a00e2db4 Check the error values from listen(2), incl. case for standards/46150. 2012-03-07 07:24:05 +00:00
jruoho
c8dfa194fd A test case for serious PR kern/38889: crash on open/mmap/close of block
device. The test case is skipped for the time being as it replicates the
panic described in the PR (tested on NetBSD/amd64 6.0 BETA).
2012-03-06 11:02:55 +00:00
jruoho
7ee67ae065 A test case for PR kern/46077: fstat() returns EINVAL on dup'd connected
socket. Expected failure on NetBSD x86, 5.0 - 6.0. Does not fail on Linux.
2012-03-06 10:32:15 +00:00
pgoyette
a885f06423 Remove an escape sequence that was introduced by accident. 2012-02-28 08:58:39 +00:00
jruoho
b949b4c07e Fix wrong type. 2012-02-28 06:09:48 +00:00
christos
0eef4e1ec0 add a test to verify that snprintf float does not leak. 2012-02-26 23:14:26 +00:00
joerg
3069ef674a Restrict -ffloat-store to t_strtod.c. 2012-02-24 14:02:55 +00:00
joerg
37f2635c65 Fix obvious code issues and remove the original -Wno-error for clang
builds to not hide them in the future:
(1) Don't use a pointer to a local variables if all that is done is
comparing it against NULL. The function itself works fine for that
purpose.

(2) Initialise the fail counter, giving the test a chance to work
reliably.
2012-02-24 13:53:46 +00:00
martin
45d535a7b7 Add a test case to call posix_spawn with empty file actions, which reproduced
the (now fixed) PR kern/46038.
2012-02-20 12:22:40 +00:00
jmmv
1cf12d0216 Add a test to ensure that PAGE_SIZE is available in kernel modules.
This test reproduces the error condition in PR port-macppc/46041 and
therefore it is an xfail in this particular platform.
2012-02-17 22:36:50 +00:00
christos
3fa39ef91e add positional argument tests 2012-02-17 20:17:38 +00:00
perseant
ed08fe6512 Pass t_renamerace and t_rmdirrace tests.
Adapt dholland@'s fix to ufs_rename to fix PR kern/43582.  Address several
other MP locking issues discovered during the course of investigating the
same problem.

Removed extraneous vn_lock() calls on the Ifile, since the Ifile writes
are controlled by the segment lock.

Fix PR kern/45982 by deemphasizing the estimate of how much metadata
will fill the empty space on disk when the disk is nearly empty
(t_renamerace crates a lot of inode blocks on a tiny empty disk).
2012-02-16 02:47:54 +00:00
riz
f8a1d7977c Back out the recent import of IPFilter 5.1.1 for the upcoming branch,
which will now have IPFilter 4.1.34.  IPFilter 5.1.1 will be restored
post-branch.

ok: core, releng.
2012-02-15 17:55:03 +00:00
martin
c785063d3d Comment out test n3_6 - the data files are missing 2012-02-14 09:17:22 +00:00
martin
1e1d6ed3ce Add a few more posix_spawn testcases, which should detect everything that
was wrong in the initial version, causing the failure reported in
PR kern/45991.
2012-02-14 00:13:54 +00:00
bouyer
5ba1d99f10 When I split non-quota-specific functions out from ../ffs/quotas_common.sh
I forgot to ajust this test.
Fix PR bin/46015
2012-02-13 22:40:43 +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
darrenr
b13c836b86 Update ipf test suite with test cases from IPFilter 5.1.1 2012-02-13 18:52:53 +00:00
dholland
2569366154 Update reference output to match yesterday's fix. ok martin@ for releng 2012-02-13 17:55:12 +00:00
wiz
6150642599 Add RCS Id. 2012-02-13 08:55:20 +00:00
jruoho
f91f485fa7 Fix wrong error failure message. 2012-02-13 05:09:01 +00:00
jruoho
31fc3f8772 Polish the path names a little. 2012-02-13 04:48:21 +00:00
jruoho
5c0797982c Add a small note about the directory structure. 2012-02-13 04:43:25 +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
njoly
c4210b25ef Add a testcase which checks that directory permissions are honored for
file creation/deletion with unprivileged credentials.

releng ok.
2012-02-09 18:31:03 +00:00
matt
fcaa0c3257 Change eps to fit within the VAX FP range. 2012-02-05 17:52:55 +00:00
dholland
f9735fd481 Reimplement repquota -x to print in tabular form instead of XML. 2012-02-01 05:12:45 +00:00
njoly
dcea8cfc3c owner testcase now succeed with rumpfs. 2012-01-31 19:02:49 +00:00
njoly
8e54f08b1f Check directory write access for DELETE operation. And while here,
small indentation adjust.
2012-01-31 18:56:07 +00:00
njoly
dc7e929d73 Adjust MEMFREE expected output to recent kmem(9) changes. 2012-01-30 13:05:52 +00:00
rmind
b82e29ffe8 tsleep(9) no more. 2012-01-28 12:23:56 +00:00
christos
f6647173db add a signopipe test 2012-01-28 02:47:09 +00:00
njoly
24d0234070 unpriv owner test now pass for sysvbfs. 2012-01-27 21:53:50 +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
1897181a72 From tnozaki@: make fpos_t a complex object that keeps track of the parse
state of the stream. Change argument of the seek function to funopen() from
fpos_t to off_t. Make f{g,s}etpos() use the new fpos_t struct, while providing
backwards compatible entry points. Approved by releng@
2012-01-22 18:36:14 +00:00
tsutsui
6df52306d4 Invoke a shell script via ${HOST_SH} rather than assuming exec bits. 2012-01-20 15:06:47 +00:00
bouyer
9427679519 Make parts of the quota tests useable for more than quotas:
- rename h_quota2_server to h_ffs_server, there's nothing about quotas
  in there.
- extract non-quota parts of quotas_common.sh to ffs_common.sh
2012-01-18 20:51:23 +00:00
joerg
71d0bcc69f Introduce __HAVE_NO___THREAD for sun2 and vax to disable the TLS usage.
Require __HAVE_TLS_VARIANT_I or __HAVE_TLS_VARIANT_II as well as
__lwp_getprivate_fast / __lwp_gettcb_fast to exist for libpthread.
Define VAX as going to use TLS variant I, if it is ever implemented.
2012-01-17 20:34:57 +00:00
christos
3b23191359 PR/44196 is now fixed, so don't expect a failure. 2012-01-13 16:28:44 +00:00
martin
f330f9aa31 ATF_REQUIRE_ERRNO() needs to be used with care:
- pass the expected errno to it, not "errno"
 - make sure to have errno set already before invoking the macro, i.e.
   do not use it to test errno changes as side effect of the asserted
   expression

Spotted by mlelstv, makes the epoch tests correctly fail on amd64 as
well.
2012-01-07 15:05:22 +00:00
christos
e3abe87712 crypt does not return NULL anymore. 2011-12-28 22:07:40 +00:00
christos
332223360f Proper copyright, RCSID. 2011-12-27 01:24:27 +00:00
christos
07d8486a79 Add a test for crypt salts. From:
http://cvsweb.openwall.com/cgi/cvsweb.cgi/Owl/packages/glibc/crypt_freesec.c
From Solar Designer
2011-12-27 00:47:23 +00:00
christos
9fa2ffcc71 add 2 more tests, sort 2011-12-25 20:16:05 +00:00
christos
6ac73dbd87 correct install dir 2011-12-21 01:56:16 +00:00
christos
013de02143 Add a test for the latest fifofs fix. 2011-12-21 00:17:06 +00:00
joerg
d1de422af2 Remove unused variable 2011-12-18 22:51:00 +00:00
christos
28aeeb58ed test timer expiration. 2011-12-18 22:25:20 +00:00
apb
7cf05991c0 Add some tests for dates several centures into the past and future.
These currently fail, but I'll fix that soon.
2011-12-17 19:07:34 +00:00
apb
e09f33bae5 Add some tests for timegm(3) close to the epoch. In
particular, 1969-12-31 23:59:59 should convert to (time_t)-1
with errno = 0.
2011-12-17 19:04:07 +00:00