Commit Graph

1302 Commits

Author SHA1 Message Date
oster
bfb5c54728 Note that PR kern/44251 is fixed.
Add tests for normal configuration of RAID 1 and RAID 5 sets.
2011-07-29 19:57:38 +00:00
jruoho
16327d2721 As per PR bin/45180, do not traverse too deep. 2011-07-27 05:04:11 +00:00
christos
b7b6a059c7 make sum volatile to avoid printing 2011-07-24 14:00:36 +00:00
martin
04bb4b5206 gcc optimizes away the side effect free call to the "poke" function which
is supposed to smash our stack in this test case.
So: make it print out some dummy value based on the smashing changes.
2011-07-23 22:17:43 +00:00
hannken
1db98a4a6d putter_fop_stat(): set st_mode to S_IFCHR.
Fixes PR #44807: something broken in stat(2).
2011-07-23 14:28:28 +00:00
alnsn
f60611afcd Don't assume that "first lock that blocks" is a lock with the lowest
start offset and change the test to work when F_GETLK returns any
lock that blocks.
2011-07-23 09:59:14 +00:00
jym
3c92ae0499 Modify exec test to be more resilient regarding partial exec protection:
skip test instead of returning a failure that could be misinterpreted.

Suggested by Jukka in private mail.
2011-07-20 22:53:44 +00:00
hannken
9f9c02f1cd Even though msdosfs never truncates file names it advertises _PC_NO_TRUNC
as zero.  Make it advertise one (no_trunc == true).

Names longer than NAME_MAX (255) will never pass namei() btw.

Fixes PR #43670 (msdosfs claims support for filenames longer than {NAME_MAX},
                 but fails)
2011-07-20 11:52:00 +00:00
dholland
0d0aaf26a0 Remove nonexistent include directory from CPPFLAGS.
PR 45068 from Henning Petersen.
2011-07-19 03:30:46 +00:00
jym
ca453df649 Add a simple test case to check executable mapping rights for mprotect(2).
- provide an exec_prot_support() routine so $ARCH can indicate whether
it supports execution protection or not, and skip test accordingly.

- have a trivial 'return_one' shellcode to copy anywhere in a page, and
call it. The decision to keep the assembly solution is mine, reasons are
twofold:

   - all pure-C implementations cannot be controlled easily:
     bounds detection (beginning/end) of return_one is unpredictable,
     or requires the use of overkill solutions like libelf. Using
     dlsym(3) was a good proposal, however I can't use it to know the
     end address of the payload. It makes copying of the shellcode a bit
     more difficult: using a constant may be too small (code has not been
     entirely copied, and can lead to errors that can be erroneously
     detected as "test passed"), or too big (depending on where it is mapped
     in memory, copying past the end of the function may trigger SIGSEGV).

   - I have to ensure that the resulting assembly is the most compact
     possible, especially as it will be reused to test other parts of
     memory (stack, data, rodata, etc.).

Only i386 and amd64 are implemented so far. Others will come in due time.
FWIW, writing the exec_prot_support() callback and the return_one payload
should be enough. Writing callback requires good knowledge of the platform,
depending on chip revision, CPU, board, MMU... the protection level may vary.

Current files are put under lib/libc/arch/* and lib/libc/common/. Feel free to
move them around the tests/ tree. Keep in mind that the common/ and arch/ code
will be used outside of libc, so please do not hide them too deep in the tree.

I checked a few architectures via build.sh cross-compile, and will keep an
eye on buildbot for potential build breakage. Feel free to contact me in
case you see any, of course.
2011-07-18 23:16:08 +00:00
dholland
5b854a1a07 ffs and ffslog are no longer xfail. 2011-07-18 06:47:08 +00:00
jruoho
650c5cb762 Verify that dup2(2) and dup3(2) fail with EBADF if the "new descriptor" is
specified to be larger than RLIMIT_NOFILE.
2011-07-18 04:29:37 +00:00
jruoho
ce5544e745 PR lib/45148 was fixed; remove xfail. 2011-07-16 14:29:15 +00:00
jruoho
450530506c Fix wrong linker flag that has always been lurking here. 2011-07-15 14:00:41 +00:00
jruoho
dacd6ba8f0 Split out the -lpthread tests to a separate file.
XXX: The only thing gained from this is seeing whether -lpthread breaks
     the getenv(3) family. Yet, a strict hypothesis about this would require
     that the two test files are identical, which they are not.
2011-07-15 13:54:31 +00:00
jruoho
11ee5754de Add two more naive tests. 2011-07-15 11:27:23 +00:00
jruoho
844c18226d Add some cases for dup2(2) and dup3(2). 2011-07-15 09:40:16 +00:00
jruoho
31e0c3fb7c Split the test to two contextually different tests. 2011-07-15 07:39:26 +00:00
jruoho
1ea16e5059 Rename two test files to get functional scope (and avoid confusion
with ctype(3)). No functional change.
2011-07-15 07:35:21 +00:00
jruoho
8a16de8dc8 Few naive unit tests for the getprotoent(3) family. 2011-07-15 06:41:29 +00:00
jruoho
943257c643 Move the uvm "loan" test to tests(7). 2011-07-14 11:08:44 +00:00
jruoho
fba4fe8aa3 Remove the 't_mincore' test case, as it is essentially a less elegant
version of the recently added page residency checks.
2011-07-14 10:24:56 +00:00
jruoho
c198c89355 Add the test cases from the old ../regress/sys/uvm/mmap/mmap.c. 2011-07-14 08:09:48 +00:00
jruoho
99db6ea634 Use ATF_CHECK() when appropriate. 2011-07-14 07:33:20 +00:00
jruoho
5fb118d0d5 Add few simple test cases. 2011-07-14 05:46:04 +00:00
jruoho
717eba57b8 Adjust. 2011-07-14 04:59:14 +00:00
jruoho
d808fe5f3c Rename few test case names. No functional change. 2011-07-13 11:17:03 +00:00
njoly
247e3a69b7 Fix off-by-one in strlen_huge testcase. 2011-07-12 12:08:07 +00:00
njoly
730b47d6fe Convert some more ATF_REQUIRE calls to ATF_CHECK. 2011-07-11 17:51:48 +00:00
njoly
1732ed7d11 Make types_signed/types_unsigned testcases use ATF_CHECK instead of
ATF_REQUIRE.
2011-07-11 16:12:56 +00:00
jruoho
aa3f9890b8 Split out 't_printf' and 't_scanf' from 't_format' to gain the common
"functional scope" for the test files.
2011-07-08 06:38:03 +00:00
jruoho
8caf60c4cf Remove the amd64-part from the Qemu checks. The following tests fail also on
i386/qemu: 'strtold_inf', 'strtold_nan', and 'infinity_long_double'. It seems
that more than anything else, these are dependent on the used Qemu version.
2011-07-08 05:10:05 +00:00
jruoho
8b5271a3be Fix previous. 2011-07-07 19:29:58 +00:00
jruoho
b238e6b2f8 Rename test case names. 2011-07-07 16:31:11 +00:00
jruoho
cc0041648e Move 't_glob_star' to 't_glob' for glob(3). 2011-07-07 15:53:27 +00:00
jruoho
9b5c52594e Merge 't_environment' and 't_environment_pth'. 2011-07-07 15:50:23 +00:00
jruoho
6836bf7807 Rename some test case names. No functional change. 2011-07-07 11:12:18 +00:00
jruoho
f7ca1d1262 Improve the QEMU/amd64 detection. 2011-07-07 11:04:30 +00:00
jruoho
34b08852ac Rewrite the limit-test. 2011-07-07 10:27:31 +00:00
jruoho
1b9f2dc9c1 Move 't_syslog_pthread' to 't_syslog' for consistency with libc. 2011-07-07 10:02:52 +00:00
jruoho
9a514225a1 Rename some test case names for consistency. No functional change. 2011-07-07 09:49:59 +00:00
jruoho
2b91d03e47 Few basic checks, including a case for strnlen(3). 2011-07-07 09:31:27 +00:00
jruoho
b34acef418 Add one simple test case. 2011-07-07 09:16:06 +00:00
jruoho
54bb10746c Split out the string tests from t_string.c for consistency. 2011-07-07 08:59:30 +00:00
jruoho
1c3ef2c741 Rename some test case names for consistency. 2011-07-07 08:27:36 +00:00
jruoho
7e7bf0e2e7 Remove syscall SUBDIR. 2011-07-07 07:31:29 +00:00
jruoho
4f84d54f76 Add some errno-checks. 2011-07-07 07:27:49 +00:00
jruoho
e32f731829 Remove 't_cerror' (this is tested by numerous individual tests).
Rename 't_context' to 't_getcontext' for consistency.
2011-07-07 07:06:21 +00:00
jruoho
068fb4f133 Add the syscall tests back. Couple of files and tests were also renamed for
consistency. All of these now mimic the libc structure.
2011-07-07 06:57:53 +00:00
jruoho
5152b0c082 Deprecate tests/sycall. The tests will be added back to tests/libc/sys. 2011-07-07 06:16:59 +00:00
jruoho
b54ff1eb07 Move the 'syscall/t_cmsg' test to 'include/sys/t_socket'. 2011-07-07 05:50:26 +00:00
spz
8efcedf571 give the idea, rc5 and mdc2 checks a chance of working if they are defined
to be compiled
2011-07-05 10:03:09 +00:00
jruoho
5e197927a8 Remove the xfail check after all (PR kern/45113 is bogus or fs-dependent). 2011-07-05 04:33:23 +00:00
mrg
8aa4955581 XXX: ugly hack to make these valid for vax fp.
XXX: could consolidate some of this into a common header, but i'll
     leave that clean up for another time.
2011-07-04 22:33:29 +00:00
jruoho
e2676bb856 As the Qemu clocks are not accurate, switch the usleep(3) delays to sleep(1). 2011-07-04 20:09:28 +00:00
jruoho
9b1f3701bf Few tests for mkfifo(2). 2011-07-04 15:46:09 +00:00
jruoho
d9922f893e Adjust the EEXIST-check once more. (This failed incorrectly in the Qemu-runs.) 2011-07-04 09:29:37 +00:00
jruoho
c9cfc0c76b Few fundamental checks for chroot(2) and fchroot(2). 2011-07-04 08:09:11 +00:00
jruoho
c9b92f91be Basic tests for issetugid(2). 2011-07-04 05:10:23 +00:00
jruoho
60c15c9c00 For granularity, split the EEXIST-check to a separate test case.
It appears that yet another bug was caught.
2011-07-04 04:10:34 +00:00
jruoho
fd6ab578e9 Put the previous check back and point to PR kern/45113. Also check whether
_PATH_DEVNULL exists before attempting to obtain EEXIST from mknod(2).
2011-07-04 03:52:11 +00:00
jruoho
1ab726096b Require an unprivileged run. 2011-07-04 03:23:31 +00:00
jruoho
a3b49d7e2f Three simple unit tests for revoke(2). 2011-07-03 21:06:56 +00:00
jruoho
33e373ef8e Remove wrong check.
XXX: Why does this fail on tmpfs but not ffs?
2011-07-03 20:22:51 +00:00
jruoho
3b8e98cd4e Fix copy-pasto. 2011-07-03 19:02:00 +00:00
jruoho
81ab4d12a9 Few naive test cases for link(2). 2011-07-03 17:47:15 +00:00
jruoho
5b70ae820d The PR was fixed. Remove atf_tc_skip(). 2011-07-03 15:42:07 +00:00
mrg
6520ba9809 avoid building stuff that depends upon pic objects if MKPIC == no. 2011-07-03 15:28:25 +00:00
jruoho
85c7095d12 Few naive tests for unlink(2). 2011-07-03 15:05:43 +00:00
jruoho
fa196d116d Do not play with master.passwd(5). Just in case the test actually succeeds... 2011-07-03 14:45:07 +00:00
jruoho
8ce73eddfe Few simple tests for mknod(2), including a skipped one for PR kern/45111. 2011-07-03 14:34:21 +00:00
mrg
8ab8bb438f only build the ld.elf_so tests if MKPIC != no. 2011-07-03 06:46:49 +00:00
mrg
634f9d1313 apply some -Wno-enum-compare. 2011-06-29 02:36:26 +00:00
mrg
8f5647d330 apply some -fno-strict-aliasing
XXX -- someone please fix this properly.
2011-06-29 02:36:13 +00:00
christos
88d695edac fix fallout from including signal.h in rump_syscallargs.h 2011-06-26 13:17:36 +00:00
christos
60e8629a5d fix fallout from including signal.h from rump_syscallargs.h 2011-06-26 13:15:22 +00:00
christos
5c85f3b56b fix fallout from including signal.h in rump_syscallargs.h 2011-06-26 13:13:31 +00:00
christos
360b33ff11 more fallout from rump_syscallargs.h including <signal.h> 2011-06-26 13:08:08 +00:00
christos
01c7e2ef5b ggr, how many of those I will need to fix. Fallout from the bogus inclusion
of <signal.h> in rump_syscallargs.h.
2011-06-26 13:06:00 +00:00
christos
7933a8d7d6 need signal.h for kill()
this is why it was wrong for rump_syscalls.h to include this.
2011-06-26 12:14:59 +00:00
nonaka
c52f9a5df2 PR/45015: ld.elf_so: support ELF symbol versioning
Applied latest patch.
2011-06-25 05:45:10 +00:00
jruoho
013b7b496e Require unprivileged runs when appropriate. 2011-06-21 01:45:26 +00:00
jruoho
f0756496ab Few naive tests for truncate(2). 2011-06-20 18:03:41 +00:00
joerg
208082f32c Try to initialize retval to something sensible. 2011-06-18 20:05:56 +00:00
joerg
2df16a8d62 input() isn't used 2011-06-18 20:05:28 +00:00
christos
355eb06ba8 Remove environment variable settings.
Now that we are not abusing $HOME to get to the terminfo db, make it visible.
2011-06-17 16:59:51 +00:00
christos
046bfa491c vis'ify the excess byte printing so that xstlproc does not barf. 2011-06-17 16:32:31 +00:00
christos
ab526f5155 turn off verbose 2011-06-17 16:30:58 +00:00
christos
e8b3e7091a turn on warnings 2011-06-17 16:30:30 +00:00
christos
23bea5092d - pass things in arguments instead of environment
- sanity check arguments
- disable extra data warning, old tests gave it too
- print more detailed errors
- use err/warn more
*some tests still fail; more than they used to*
2011-06-17 02:15:28 +00:00
joerg
afc8527716 Use proper format strings. 2011-06-16 15:33:24 +00:00
mrg
c25406cbc7 evbppc can do modules now. 2011-06-15 23:45:45 +00:00
jmmv
cb5d8fbf8d Fix definition of the plus_tflag test case. Uncovered by atf 0.14. 2011-06-15 07:58:03 +00:00
jmmv
884a148d21 Fix obvious typo in test case name. Uncovered by atf 0.14. 2011-06-15 07:54:32 +00:00
plunky
e19d93dc5d gcc seems to pad small character arrays, use an array of ints
while here, make the poke function non-static, so that it doesnt
get optimised away
2011-06-15 06:09:21 +00:00
njoly
e792323b22 Avoid printf(3) directive interpretation in long_format testcase
description.
2011-06-14 12:17:57 +00:00
njoly
10e63b29d4 Move unsigned int/long conversion test to their own testcases, to
avoid having the whole marked as skipped. While here update testcases
names.
2011-06-14 11:58:22 +00:00
njoly
6e845fb5bc mkdep(1) needs cc(1). Make testcase check for them. 2011-06-14 11:44:25 +00:00
jruoho
519d4f3013 Avoid ATF_REQUIRE() inside a child process. 2011-06-14 05:28:00 +00:00
jruoho
280c25b2f3 Test that assert(3) works. 2011-06-14 05:25:20 +00:00
jruoho
4c45d59aa4 Add few basic tests for the getlogin(2) family. 2011-06-14 03:50:47 +00:00
jruoho
3b469f3ce9 Remove the cases that cause integer overflow on e.g. i386. 2011-06-14 02:45:58 +00:00
jruoho
5c64bfa640 The NaN case for strtold(3) was fixed for x86. Adjust for the expected
failures (known failures include again the special case of qemu/amd64).
2011-06-14 02:37:31 +00:00
plunky
33a7866d10 reinstate ssp:raw test, slightly differently.. this one is built
with -fstack-protector-all and tests that the compiler built in
stack protection works, by poking directly outside the buffer
2011-06-12 21:12:46 +00:00
plunky
042cae446e don't pass -fstack-protector for these, the tests are actually for the
__*_chk functions included by -D_FORTIFY_SOURCE=2, and if the compiler
provides additional protection, it can mask broken functions..

(none of the _chk functions will return or process any data if
the length given is known to be larger than the buffer)
2011-06-12 19:22:01 +00:00
christos
e4bf07bdfe Fix patented algo compilation 2011-06-12 16:16:26 +00:00
mrg
d78c2159a8 vmobjlock is now a pointer to kmutex_t. use it as one. 2011-06-12 06:38:14 +00:00
christos
2a18cea9f4 Turn warns on for all tests and fix all the bugs. 2011-06-11 18:03:17 +00:00
njoly
88309ba987 Do not print sizeof values in skip message. 2011-06-10 17:10:43 +00:00
njoly
ec49331b57 Remove unneeded prototypes. 2011-06-10 15:52:44 +00:00
njoly
6be560f8ad Remove newlines from various messages. 2011-06-10 15:43:59 +00:00
njoly
86d9fe0273 Do not call exit() after atf_tc_fail(). 2011-06-10 15:21:25 +00:00
spz
56d7efa655 add tests for evb and srp 2011-06-09 05:25:17 +00:00
jruoho
a4bc4192a9 Adjust types. 2011-06-08 05:31:43 +00:00
jruoho
72242ed7f9 Use atf_tc_skip() instead of #if 0. 2011-06-08 05:28:03 +00:00
jruoho
8fb0f51219 Temporarily comment out the 'stat_dir' test. It panics QEMU/i386 guests. 2011-06-07 19:06:39 +00:00
martin
ff5dc95132 Sparc64 does not fail the strtold_nan test, so don't expect failure there 2011-06-07 13:51:52 +00:00
jruoho
e8214a285d Granularity is fine, but also adjust atf_tc_expect_fail() properly. 2011-06-05 16:33:51 +00:00
jruoho
0202e776ab Do not blindly cast things (obviously makes the test fail). 2011-06-05 13:51:46 +00:00
jruoho
4706fcee20 Remove the dirent(3) check entirely. 2011-06-05 13:49:46 +00:00
jmmv
727143def5 Do not blindly skip test code.
Tests are not supposed to skip whole parts of code to later report a success.
Instead, they need to report a 'skipped' result so that it is clear to the
user that some part of the tests were not run.

To do this, add proper calls to atf_tc_skip where some pieces of code are
skipped.  Also, make the strtod/strtof/strtold inf and nan tests more granular
so that the *ld versions can be skipped altogether when there is no support
for them.  As a result of this, the atf_tc_expect_fail becomes accurate; it
could have hidden bugs in strtod and strtof before.
2011-06-05 07:58:03 +00:00
christos
a60572ee58 - use c99 to avoid extra ifdefs and tidy up the code
- require that undeflow returns 0 and ERANGE
2011-06-05 00:02:05 +00:00
matt
dc3cdd31a6 Only do the long double tests if __HAVE_LONG_DOUBLE is defined 2011-06-04 22:55:57 +00:00
haad
d2ca1cbffe Fix problem with overflowing constant definition
t_strtol.c:95: warning: overflow in implicit constant conversion
2011-06-04 22:49:49 +00:00
jruoho
9817cc1689 Until PR bin/44837 is fixed, use atf_tc_fail("anticipated error did not
occur") even if the bug did not trigger.
2011-06-04 15:51:45 +00:00
jruoho
82e825d83e Do not fail if readdir(3) fails, probably due fts(3). 2011-06-04 15:45:55 +00:00
jruoho
2f29e26662 Add some tests for strtol(3). 2011-06-04 14:56:57 +00:00
jruoho
22f449ee0a Add -ffloat-store add test lib/45020 also with __isnanl(). 2011-06-04 11:12:28 +00:00
jruoho
9478bd9e7d Add more strings to the "infinity test". 2011-06-04 10:16:59 +00:00
jruoho
27898bce9a Verify PR lib/45020. Fails at least on amd64. 2011-06-04 09:57:33 +00:00
jruoho
af2ef37331 Add some tests for stat(2) (or tests that use stat(2)). 2011-06-04 09:29:43 +00:00
jruoho
0df0be27b8 Add some fundamental checks for memset(3). Prompted by a recent nasty
bug in the Google Android libc.
2011-06-03 06:39:52 +00:00
jruoho
c16aba3d13 Test also setdomainname(3). 2011-06-03 05:42:09 +00:00
jruoho
577c48bd00 Cleanup. 2011-06-02 12:42:27 +00:00
jruoho
2fc2edcdfd Few naive tests for sethostname(3). 2011-06-02 12:15:33 +00:00
jruoho
b14fc1879c A simple test for mincore(2). 2011-06-02 10:48:55 +00:00
tron
c9c2bac22c Add a regression test for poll(2) based on the test for pollts(2). 2011-06-01 19:43:10 +00:00
tron
860f8e7937 pollts(2) is supposed to return -1 in particular and not a random
non-zero value in case of an error.
2011-06-01 19:32:50 +00:00
jruoho
f1f75c782c Check also basic EFAULT and EINVAL from bogus calls to pollts(2). 2011-06-01 03:39:45 +00:00
alnsn
299044f0e0 Add <stdlib.h> for system(3). 2011-05-31 22:40:35 +00:00
jruoho
7f356ce1cf Mark the following tests as expected failures on qemu/amd64: 'strtod_inf',
'strtod_round', and 'infinity_long_double'. None of these fail on any known
native host. Use the tracker PR misc/44767 as the reference point.
2011-05-31 20:17:36 +00:00
njoly
15f57fb06f Adjust testcase for recent changes.
- suffixes output order is now reversed.
- remove expected failure for empty list.
2011-05-31 13:22:56 +00:00
pgoyette
c7176ca73e Descend into mkdep to catch its test 2011-05-30 19:31:19 +00:00
njoly
3fa42f3842 Add testcase for PR bin/45004, to exercize suffixes lists for
mkdep(1).
2011-05-30 18:14:11 +00:00
joerg
28050549eb Ignore warnings when building with clang for now. 2011-05-30 14:41:26 +00:00
martin
56a416ee80 Remove "expected failure" for tmpfs PRs that are now fixed. 2011-05-30 13:10:38 +00:00
christos
782e6f71ab Modify the test to be more robust. Still getting fork interrupted somehow,
but the tests work (after my kernel changes).
2011-05-29 22:12:32 +00:00
tron
b38a19838c Don't use assert(3) for expressions with side effects on request by
by Christos Zoulas. Use ATF_REQUIRE() and ATF_REQUIRE_EQ() instead.

Also use ATF_REQUIRE_EQ_MSG() instead of ATF_REQUIRE_MSG() to avoid
crashes if one of the required conditions isn't met.
2011-05-29 12:57:14 +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
christos
e23b76ca1c add a timeout test 2011-05-28 15:34:49 +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
joerg
a216da57a6 Default to -Wno-sign-compare -Wno-pointer-sign for clang.
Push -Wno-array-bounds down to the cases that depend on it.
Selectively disable warnings for 3rd party software or non-trivial
issues to be reviewed later to get clang -Werror to build most of the
tree.
2011-05-26 12:56:24 +00:00
joerg
e04e416493 Use proper format string 2011-05-24 15:24:28 +00:00
joerg
ee3252c44f Use volatile for explicit 0 dereference 2011-05-24 15:20:37 +00:00
nakayama
88e42b609b Add fenv support for sparc. Mostly copied from sparc64 and share with it. 2011-05-20 21:42:48 +00:00
joerg
3b8335f4ee Test case requires the GCC specific thread extension for Objective C, so
only enable the test if GCC is present and disable other compiler.
2011-05-20 13:03:45 +00:00
riastradh
ee53e39c19 Expand tests for unaligned writes to cgd. No more xfail.
PR kern/44515
PR kern/44964
2011-05-19 20:37:50 +00:00
christos
e2d6a49943 Don't depend on the atf timeout stuff, do it ourselves. 2011-05-18 03:15:12 +00:00
christos
185865c435 Add a test for signal delivery during pselect, with temporary mask change. 2011-05-18 02:57:48 +00:00
njoly
59bc3aabda Add require root user to test_case_xfail. Avoids reporting expected
failure for the wrong reason with unprivileged runs (puffs access
denied).
2011-05-17 22:01:41 +00:00
he
1fd8e2619a The support of <fenv.h> is actually for __sparc64__, not for __sparc__
(which is also defined on sparc64).  This fixes a build problem for
plain sparc.
2011-05-16 07:59:18 +00:00
christos
65066d37d4 h_macros need strlcat and random ugh, please someone remove this header.
define _NETBSD_SOURCE so those are defined.
2011-05-16 00:03:36 +00:00
christos
21bd6ba1e6 add missing header files. 2011-05-15 23:59:03 +00:00
christos
6551109c37 if you don't include the proper include files, you are going to end up
calling functions incorrectly.
2011-05-15 23:56:28 +00:00
jmmv
9b4c1721f3 Instead of doing 'atf_check ... sh -c foo', just do 'atf_check ... -x foo'. 2011-05-14 17:42:28 +00:00
njoly
de774efe6e Remove shebang lines from test-script sources; avoids duplicate with
the build process which adds one too.
2011-05-11 22:08:12 +00:00
njoly
37bcf00e1a Typo in error message. 2011-05-11 19:06:45 +00:00
jruoho
0a8e06ff1f Adjust. 2011-05-11 08:11:36 +00:00
jruoho
3005f452fe Do also a small functional verification that user did not succeed in writing
garbage values, even if sysctl(8) reported a failure.
2011-05-11 07:07:41 +00:00
jruoho
2f45c76c1c Use the same conditional check from <fenv.h> to fix an immediate build error
pointed out by cliff@. (This does not however sound like a sane thing to
mandate from a C99 header.)
2011-05-10 19:18:19 +00:00
njoly
7605f6497e Add require.progs unifdef, to avoid failure if comp set is not
installed.
2011-05-10 19:02:27 +00:00
jruoho
98be387902 Verify that strtod(3) honors the current rounding mode set by fesetround(3).
Passes on amd64. Prompted by a bug in the GNU C library.
2011-05-10 15:20:19 +00:00
jruoho
cd5d7b9351 Few naive tests for pause(3). 2011-05-10 13:03:05 +00:00
jruoho
44744829be Add also a simplistic stress unit test. 2011-05-10 12:43:42 +00:00
jruoho
34c8ff4209 Fix comment/string typos. 2011-05-10 06:58:17 +00:00
jruoho
ac31bc5721 Fix typo. 2011-05-10 06:55:27 +00:00
jruoho
949a3d9b76 Add one missing cleanup routine declaration. 2011-05-09 17:55:37 +00:00
jruoho
f33b8e3d59 Add a test case for PR kern/44946. This tests that common first level sysctl
nodes (ddb, hw, machdep, etc.) are not writable by a normal user.
2011-05-09 17:53:54 +00:00
jruoho
76710b77f2 On a second thought, require that close(2) fails for a descriptor already
closed with closefrom(3). For some odd reason (yet to be determined), this
check fails on 5.99.51 (amd64).
2011-05-09 11:05:36 +00:00
jruoho
d5aa514fe9 Remove superfluous close(2) pointed out by martin@. 2011-05-09 10:50:02 +00:00
jruoho
105ad5cd59 Add one more naive unit test. 2011-05-09 09:27:37 +00:00
jruoho
6cd711aedd Few basic tests for exit(3). 2011-05-09 07:31:50 +00:00
jruoho
aab71b6e06 List the ATF_TC_() thins in the order of appearance. 2011-05-09 06:05:54 +00:00
jruoho
48b4c06005 Few basic tests for strerror(3). 2011-05-09 06:04:14 +00:00
jruoho
f5d692df83 Few basic tests for closefrom(3). 2011-05-09 05:17:12 +00:00
njoly
12b7c66064 Do not return for early failures; otherwise the testcase will be
reported as passed, even if not really run.
2011-05-06 22:24:41 +00:00
njoly
35f009cabe write-only mapping is not portable, change it to read/write. Unbreaks
mprotect_write testcase on alpha.
2011-05-06 21:51:19 +00:00
jruoho
fd2377c7fe Try to mirror the real source with the test directory structure (otherwise
the latter carries a risk of becoming a difficult mess to manage.)
2011-05-05 13:36:04 +00:00
jruoho
0bd56749c6 Few fundamental consistency checks for alarm(2). 2011-05-05 13:22:56 +00:00
jruoho
f9b73fbc67 Follow the real tree with the test directory structure. 2011-05-05 05:39:10 +00:00
jruoho
5cdd3dcf2a Follow the real tree with the test directory structure. 2011-05-05 05:24:44 +00:00
jruoho
cb861154c1 Add a test case for PR bin/26453. 2011-05-03 15:13:50 +00:00
jruoho
ae3433a79c Fix same copy-paste error here. (Why atf(7) does not warn about these?) 2011-05-03 14:26:11 +00:00
jruoho
15dd14fca5 Fix build failure reported by pgoyette@. 2011-05-03 14:11:51 +00:00
jruoho
1a3a1673c8 Fix copy-paste error. 2011-05-03 12:54:48 +00:00
jruoho
6e1e04d65f Add a test for PR bin/41880. 2011-05-03 08:36:15 +00:00
jruoho
765b090a54 A test for non-critical/low PR bin/42179. 2011-05-03 07:56:42 +00:00
jruoho
1f57069f96 Verify that PR bin/42628 is no longer an issue. 2011-05-03 07:23:19 +00:00
jruoho
b76e0d98ce Add a test for non-critical/low PR bin/43141. 2011-05-03 06:13:06 +00:00