Commit Graph

854 Commits

Author SHA1 Message Date
jruoho
4b77c904f2 Mark this again as expected failure. 2011-04-04 19:59:08 +00:00
hannken
fff1c84c3d Msdosfs on-disk meta data is not sufficient to create or validate file handles.
Maintain a tree of file handles, create nodes from msdosfs_vptofh() and keep
them until either the file gets unlinked or the file system gets unmounted.

Fixes the msdosfs part of PR #43745 (fhopen of an unlinked file causes problems
on multiple file systems)
2011-04-04 19:16:58 +00:00
jruoho
02a4a265f1 Use the same pattern for couple of simple setuid(2) tests. 2011-04-04 19:08:42 +00:00
jruoho
00f7056aa1 Add a test case for the POSIX (minimum) limits. Written by Stathis Kamperis. 2011-04-04 18:02:01 +00:00
jruoho
c0d6d28330 Couple of simple tests for umask(2). 2011-04-04 16:32:41 +00:00
plunky
370326ddcb reinstate #ifdef PUFFSDUMP around otherwise unused function
which requires symbols from -lpuffs, not linked
2011-04-04 15:42:42 +00:00
martin
b78cd4dd7c Do only set a (lower than default) timeout value if we are on powerpc and
expect to run into a real deadrun ofter.
The (too short) timeout otherwise makes slower archs fail.
2011-04-04 14:47:22 +00:00
jruoho
724a884379 Use _exit(2). 2011-04-04 10:30:29 +00:00
jruoho
bed8d3f065 Few simple tests for nice(3). 2011-04-04 09:52:17 +00:00
jruoho
f4dcfe215c Add some basic tests also for getsid(2). 2011-04-04 08:19:08 +00:00
jruoho
ed26b97d53 Link the 't_timer' -test with pthread(3). Should fix the test failures. 2011-04-04 08:05:37 +00:00
jruoho
1f0f2f9e9c Require an unprivileged run with atf_tc_set_md_var(). Pointed out by njoly@. 2011-04-04 07:16:29 +00:00
jruoho
275df5bf05 Two basic tests for getpid(2). 2011-04-04 06:48:04 +00:00
jruoho
412d5e96fe Check for getuid(2) == 0. 2011-04-04 01:49:45 +00:00
jruoho
c257514ed7 Remove leftover <stdio.h> include. 2011-04-03 16:22:15 +00:00
jruoho
597629b945 Add couple of simple tests for access(2) and mprotect(2). 2011-04-03 16:12:45 +00:00
hannken
032b3dee5f Fix file handle operations for tmpfs by removing a now bogus test and
fixing the return value of tmpfs_fhtovp() in the not-found case.

When vmlocking2 was merged to head (Jan 2008 !!) the inode numbering was
changed.  Before inodes were numbered 2..tm_nodes_max-1 and after the
merge the numbers are derived from the nodes memory address.

Fixes PR #43605 (tmpfs file handles are broken)
2011-04-02 14:24:53 +00:00
joerg
b50095d784 Don't fail on platforms without TLS 2011-04-02 12:53:32 +00:00
hannken
5515232cfd Make zero length symlinks work on tmpfs.
Fixes PR #43843 (tmpfs dies with kassert panic for 0 length symlink target)
2011-04-01 17:40:54 +00:00
joerg
a7e14ae77f Add initial regression test for ld.elf_so locking. 2011-03-31 23:34:47 +00:00
jruoho
35a190a334 Add couple of simple tests for dup(2). 2011-03-31 15:47:56 +00:00
jruoho
3cecf9f812 Add some basic tests for mmap(2), including one for the vm.user_va0_disable. 2011-03-31 13:07:20 +00:00
pooka
471b2e43aa Make sure test doesn't pass if file system could not be read at all. 2011-03-31 12:56:03 +00:00
jruoho
e49416c442 Remove atf_tc_expect_fail(). Should be fixed. 2011-03-30 22:26:26 +00:00
jruoho
e1bbe6445c Adjust for _PATH_CONSOLE, pointed out by njoly@. 2011-03-30 19:32:13 +00:00
jruoho
9be2a3c25f Another proof that even the naive test cases are worth it;
expect a failure with fstat(2) and bpf(4), PR lib/44807.
2011-03-30 18:31:15 +00:00
jruoho
d19079bc52 Add missing __RCSID(3), again. 2011-03-30 17:03:02 +00:00
jruoho
2289b490a3 Add some naive tests for the efun(3) family of debug functions. 2011-03-30 17:02:17 +00:00
he
6596e091ec Put tests depending on dlopen etc. under a test for MKPIC, and move
the corresponding entries in the set lists over to the shl.mi file.
This should bring the sun2 port back to a buildable state.
2011-03-30 11:43:15 +00:00
jruoho
8c6b9e263c Add some basic tests for fsync(2) and <paths.h>. 2011-03-30 09:43:21 +00:00
jruoho
a873c5cd55 Add missing __RCSID(3). 2011-03-30 08:34:19 +00:00
jmmv
e58081aa53 Halt the httpd server _before_ rump. Per pooka@'s suggestion. 2011-03-29 16:03:32 +00:00
jmmv
5bd1bce108 Make httpd create a pid file and use that to kill the server in a controlled
manner (instead of indirectly through rump.halt).  Suggested by pooka@.
2011-03-29 15:43:45 +00:00
jmmv
255271589f Extend pidfile(3) to support creating pid files in arbitrary locations.
If the argument provided to pidfile(3) contains a '/', then the value is
considered to be an absolute/relative path and the pid file is created
in the given location.

Otherwise, pidfile(3) behaves as before and treats the provided value as
a basename to construct a pid file in /var/run/<basename>.pid.  This means
that to create a pid file named "foo.pid" in the current directory, one
must specify "./foo.pid".
2011-03-29 13:55:37 +00:00
jruoho
1b871e25a1 Add a test case for pthread_cond_timedwait(3) failures reported by
Sad Clouds in PR lib/44756. This was discussed also in:

	http://mail-index.netbsd.org/tech-userlevel/2011/03/17/msg004689.html
2011-03-27 16:45:15 +00:00
mlelstv
ec85dd4442 validate that getrawpartition() didn't fail. 2011-03-27 08:53:56 +00:00
njoly
53ff676914 Add require.progs properties for needed tools to avoid failures when
comp.tgz set is not installed.
2011-03-25 19:19:45 +00:00
pooka
030990eecf check that we can dlopen() the linkmap name, too 2011-03-25 14:47:31 +00:00
pooka
b2e6db5028 check that dlopen()d dso shows up in the linkmap 2011-03-25 14:45:21 +00:00
jruoho
c90472ef80 Do not skip the QEMU bugs but instead mark these as expected failures. 2011-03-25 10:42:38 +00:00
jruoho
1604324802 Bluntly skip the tests that fail under QEMU. XXX: system(3) is used for this?
wnCVS: ----------------------------------------------------------------------
2011-03-25 10:00:31 +00:00
jruoho
0de4e7e46f Fix typo. 2011-03-25 09:39:19 +00:00
jruoho
88c2989461 Add some basic POSIX conformance tests for sched(3). 2011-03-25 09:34:02 +00:00
jruoho
5f8b364626 Even these naive test cases caught one (QEMU?) bug; comment PR # 44767. 2011-03-25 04:26:41 +00:00
jmmv
27486724f4 Prevent failures from cleanup routines. Do so by only attempting to do the
cleanup if the test case did not succeed (as, when it succeeds, the cleanup
has already happened).
2011-03-24 21:52:51 +00:00
jruoho
43a75470f9 Sort. 2011-03-24 16:58:01 +00:00
jruoho
629e716a41 Add a naive test case for raise(3). 2011-03-24 16:56:37 +00:00
jruoho
57842fd3b4 Add dummy test cases for ceil(3) and floor(3). It is expected that at least
one of these will fail on guest x86_64 NetBSD under Qemu. Thanks to pgoyette@
for checking the broken floor(16.999999...) = 17.
2011-03-24 15:43:06 +00:00
jruoho
68f3621e3d A dummy conformance-test for pthread_detach(3). I will extend this later. 2011-03-24 13:52:04 +00:00
jruoho
c3917926fd A dummy conformance-test of pthread_equal(3). 2011-03-24 12:40:59 +00:00