Commit Graph

1039 Commits

Author SHA1 Message Date
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