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
jruoho
d86c47c62a
Some naive tests for the bswap(3) family.
2011-05-03 04:50:30 +00:00
jruoho
97dfa3c4e3
Few basic tests for getitimer(2) and setitimer(2).
2011-05-02 17:26:23 +00:00
gson
0461af44be
Don't print a time_t with %lu
2011-05-02 11:14:29 +00:00
jruoho
0a02a67e57
Use the standard "PR foo/1234" notation such that the PR number is parsed
...
correctly for the atf(7) HTML reports.
2011-05-02 08:30:21 +00:00
jruoho
d06a811310
Verify that nanosleep(2) can suspend for one nanosecond (or longer).
2011-05-02 07:02:09 +00:00
jruoho
576aaaa585
Test also ttyname_r(3).
2011-05-01 18:14:01 +00:00
jruoho
5e6ff08c20
Verify PR standards/44921.
2011-05-01 17:07:05 +00:00
jruoho
2446e1b8a7
Naive tests for clearerr(3).
...
Converted from the "PCCA" test suite by Stathis Kamperis.
2011-05-01 16:36:37 +00:00
jruoho
700486254a
Add the new 'termios' subdirectory.
2011-05-01 11:44:41 +00:00
jruoho
741dca333d
Add a test for PR lib/41673 (another trivial errno "bug").
2011-05-01 11:39:37 +00:00
jruoho
2b2b951b5e
Improve further so that this might actually fail.
2011-05-01 09:44:26 +00:00
jruoho
f74cfbd2d7
Actually, as this is nanosleep(2), test 1-10 nano second sleep times.
2011-05-01 09:19:12 +00:00
jruoho
77fa459178
Simplify the previous. (Apparently the sleep time is not that accurate.)
2011-05-01 09:15:14 +00:00
jruoho
23c04498b7
Few basic tests for nanosleep(2).
2011-05-01 09:09:35 +00:00
jruoho
cbbc4a7b84
Two elementary tests for gettimeofday(2).
2011-05-01 07:22:40 +00:00
jruoho
e426bc4f89
PR lib/42587 was fixed; remove xfail.
2011-05-01 06:42:29 +00:00
alnsn
d4a5682920
Add new files.
2011-04-30 11:24:14 +00:00
jruoho
4f729153dd
Few fundamental consistency checks for kill(2).
2011-04-30 06:20:37 +00:00
alnsn
fc6d41fbf1
PR/42320 doesn't seem to be fixed, mark the failure as expected.
2011-04-30 01:10:07 +00:00
jmmv
6d06e772f7
Add test cases for PR bin/6764: 'trap ... 0' is supposed to execute the
...
command when the shell exits but it does not work in ksh when the shells
exits "implicitly" (without an explicit exit/return statement).
These new tests cover both sh and ksh. The ksh part of this does not
strictly belong to this directory, but I think it'd be nice to extend
all the tests in here to cover both interpreters whenever that makes
sense, much like we do with the file system tests.
2011-04-29 12:49:36 +00:00
alnsn
f94fb57534
Test for PR bin/42320.
2011-04-28 23:28:23 +00:00
martin
73637f3626
Add TNF license. OK: pooka.
2011-04-26 20:42:01 +00:00
martin
57d2159dd2
When failing, point to PR lib/44057 and the discussion therein about the
...
relevant compiler bug.
2011-04-26 20:20:16 +00:00
martin
8d374d551c
Simplify
2011-04-26 18:50:53 +00:00
martin
29b0298b15
Minor simplification
2011-04-26 18:42:08 +00:00
njoly
778925efe8
Do not try to lower limits that are already at 0.
2011-04-25 22:34:16 +00:00
njoly
dd925c8942
Avoid creating test files oustide atf-run temporary tree.
2011-04-25 22:29:35 +00:00
njoly
53714e0d34
In nice_err testcase, use ATF_REQUIRE_ERRNO.
2011-04-25 20:55:06 +00:00
njoly
5845e99692
Switch from atf_tc_fail to atf_tc_fail_nonfatal to report all missing
...
defines, not only the first one.
2011-04-25 20:51:14 +00:00
haad
3c44b4003a
Workaround problem with qemu where jot 100 produce garbage otput like this
...
93
94
:+
:,
:-
:.
:/
100
This can't be used as name of file, change jot cmd to work in all cases.
2011-04-21 22:26:46 +00:00
martin
84bd71a202
Add a variation of the setjmp tests that link to libpthread and verify
...
pthread_self() stays consistent.
2011-04-21 18:58:20 +00:00
blymn
da8ae82efe
Allow a NULL pointer to be passed as an argument to a call.
2011-04-21 10:23:50 +00:00
martin
eafc32a2b4
PR fixed, remove expected failure.
2011-04-20 20:02:58 +00:00
blymn
8f5d556812
Add boolean values to the standard definitions.
2011-04-20 10:40:14 +00:00