Commit Graph

1004 Commits

Author SHA1 Message Date
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
martin
fd21e1d8bf Manually craft a (default) termios description instead of trying to fetch
one from stdin - ATF tests should not rely on stdin being a terminal.
2011-04-19 20:13:55 +00:00
martin
8fc4e7259f Make the test case independend of stdin being a terminal 2011-04-19 20:07:53 +00:00
martin
9761dd743b Add MAP_PRIVATE to mmap() flags where missing. 2011-04-19 10:21:51 +00:00
jruoho
2fa0f9fccc Few simple tests for getgroups(2). 2011-04-17 06:26:02 +00:00
jruoho
38b0bf3bbd Test nice(3) also with threads. 2011-04-17 06:18:23 +00:00
plunky
831ec44f27 test that data element lists are not placed by sdp_put_attr(), as
an attribute/value pair should only contain a single data element
2011-04-16 07:32:27 +00:00
he
b2bee2ed8d Explicitly list -lterminfo after -lcurses, to support static builds. 2011-04-13 09:46:38 +00:00
jruoho
a402cee48a PR lib/41931 should be fixed; remove expected failure. 2011-04-12 03:06:21 +00:00
jruoho
5bed061828 Better to still leave the old PR number as a comment. 2011-04-12 02:56:20 +00:00
jruoho
97410b9644 PR lib/33262 should be fixed; remove expected failure. 2011-04-12 02:52:20 +00:00
joerg
433a129747 Don't fail on platforms with "char" == "unsigned char" 2011-04-11 22:37:10 +00:00
martin
72c24adedc Should no longer fail - if it still does, be sure to have a proper
/var/chroot/tcpdump/etc/protocols file installed (i.e. by running
postinstall)
2011-04-11 20:08:10 +00:00
tron
7831dec066 Fix build with stack smash protection enabled. 2011-04-11 17:16:43 +00:00
martin
7dffc9a369 Try to generate infinite values in all available floating point formats
on the FPU and check isinf() and fpclassify() results. This is
different from the libc internal consistency checks testing PR
lib/33262.
2011-04-11 10:51:36 +00:00
blymn
11e883205c Apply patch provided by mrg to fix bad calls to vw_printw and vw_scanw 2011-04-11 09:06:24 +00:00
blymn
e4abc2b9ad Fix NetBSD tag field. 2011-04-11 09:03:24 +00:00
blymn
2c84a00eef Fix incorrect call example. 2011-04-11 09:02:40 +00:00
blymn
44d4aa2e2e Incorrect licence was applied - fix this. 2011-04-11 09:02:02 +00:00
dholland
cdadb9ea2e Fix obvious bug.
(note: this file still doesn't build on amd64)
2011-04-10 23:31:30 +00:00
martin
ed194e826a Repeat the fragmentation on lo0 test, but with checksum on IFF_LOOPBACK
interfaces enabled.
2011-04-10 11:31:48 +00:00
jruoho
957fb2eb62 "wrong return value" -> "wrong errno". 2011-04-10 10:59:13 +00:00
jruoho
ba5cac7848 Formally verify PR standards/44777. 2011-04-10 10:49:43 +00:00
jruoho
ba788ede8f Currently known failures affect only amd64; adjust atf_tc_expect_fail(). 2011-04-10 10:23:45 +00:00
blymn
bdd37afa3f Add atf for libcurses with some tests 2011-04-10 09:55:08 +00:00
blymn
320b7b4d50 Add libcurses test 2011-04-10 09:49:13 +00:00
jruoho
e7c9c72e99 Verify that PR standards/21401 is no longer an issue. 2011-04-10 08:35:47 +00:00
jruoho
2fe16f2510 Fix comments. 2011-04-10 08:11:34 +00:00
jruoho
29ee83dbcf Add tests for PR standards/44847 and PR standards/18067. 2011-04-10 08:07:41 +00:00
jruoho
5aac453263 A naive test case for getcwd(3). 2011-04-10 06:27:20 +00:00
jruoho
a63adaf81b Add a test case for PR lib/41931 reported by he@. It was verified that these
fail on NetBSD 5.99.48 amd64 but pass on amd64 Linux (glibc 2.7).
2011-04-10 06:11:47 +00:00
martin
3d772d583a Remove expected failure, PR has been fixed. 2011-04-09 20:42:12 +00:00
pgoyette
324074b933 atf-ify the various locale tests 2011-04-09 17:45:24 +00:00
martin
40b302ddec Add two simple testcases to exercise pty/tty communication. 2011-04-09 11:55:59 +00:00
martin
c5e67b6b14 No longer expected to crash the kernel. 2011-04-09 06:36:03 +00:00
jruoho
c077304602 Use RLIMIT_NOFILE rather than the static _SC_OPEN_MAX. 2011-04-08 15:35:49 +00:00
jruoho
5ebf352487 Adjust the test with stdin(3). 2011-04-08 15:25:00 +00:00
yamt
4f5ae08861 test timer_create with CLOCK_MONOTONIC as well 2011-04-08 11:11:53 +00:00
jruoho
6f21bdca87 Adjust for the tracker PR kern/30115 for this over 15 year old bug. 2011-04-08 10:36:09 +00:00
jruoho
a2963f40dc Move the round(3) checks from 't_libm' to their own 't_round'
for consistency. Add -Wfloat-equal and fix comparisons.
2011-04-08 06:49:20 +00:00
jruoho
b63018ec52 Fix build failure on VAX. 2011-04-08 06:37:50 +00:00
jruoho
02dfa85f00 Remove the following (literal) text in the TNF copyrights:
* This code is derived from software contributed to The NetBSD Foundation
  * by
  *

XXX: If these originated from you and you want your name to be mentioned,
     please add it.
2011-04-07 18:14:08 +00:00
jruoho
247203635d Add few naive test cases for msync(2). 2011-04-07 17:38:02 +00:00
jruoho
a301260f35 Improve the test further so that it might trigger more often. 2011-04-07 17:33:11 +00:00
plunky
5a4807fa7d whitespace police 2011-04-07 08:29:50 +00:00
plunky
77d265be45 link libbluetooth tests to the build 2011-04-07 06:24:07 +00:00
plunky
38293af7ee add tests for the following libbluetooth functions
bluetooth(3)
	bt_aton()
	bt_ntoa()

    sdp_data(3)
	sdp_data_type()
	sdp_data_size()
	sdp_get_data()
	sdp_get_attr()
	sdp_get_uuid()
	sdp_get_bool()
	sdp_get_uint()
	sdp_get_int()
	sdp_get_seq()
	sdp_get_alt()
	sdp_get_str()
	sdp_get_url()
	sdp_match_uuid16()
	sdp_put_data()
	sdp_put_attr()
	sdp_put_uuid()
	sdp_put_uuid16()
	sdp_put_uuid2(3)
	sdp_put_uuid128()
	sdp_put_bool()
	sdp_put_uint()
	sdp_put_uint8()
	sdp_put_uint16()
	sdp_put_uint2(3)
	sdp_put_uint64()
	sdp_put_int()
	sdp_put_int8()
	sdp_put_int16()
	sdp_put_int2(3)
	sdp_put_int64()
	sdp_put_seq()
	sdp_put_alt()
	sdp_put_str()
	sdp_put_url()
	sdp_set_bool()
	sdp_set_uint()
	sdp_set_int()
	sdp_set_seq()
	sdp_set_alt()

[all pass on i386]
2011-04-07 06:21:57 +00:00
jruoho
93c4b96c53 Fix and improve as per suggestions from njoly@. 2011-04-06 19:09:16 +00:00
jruoho
64cf2356be Add a test case for the segfault reported in PR lib/43964. 2011-04-06 17:41:27 +00:00
jruoho
710017dde4 As per PR lib/44818, remove 'lib/libpthread/t_status'. It takes two minutes
to rewrite this properly if someone misses this.
2011-04-06 16:04:16 +00:00
jruoho
c212c60925 Mark this also as expected failure. 2011-04-06 10:06:49 +00:00
jruoho
9827f0b4f3 Formally verify the numerous bugs in humanize_number(3).
From PR lib/44097, by yamt@.
2011-04-06 10:04:53 +00:00
jruoho
e254abd58b A test case for PR lib/44057. 2011-04-06 09:35:49 +00:00
jruoho
e21f0b912e As there is PR lib/42587, mark tiny POSIX error as expected failure. 2011-04-06 08:47:55 +00:00
jruoho
2ae856efaa Verify the existence of PR lib/33262. 2011-04-06 07:25:34 +00:00
jruoho
e519fcc23a Add heuristic evaluation of PR kern/30115. 2011-04-06 06:46:14 +00:00
jruoho
03fcec4259 Fix comment due explicit atf_tc_expect_fail(). 2011-04-06 05:56:05 +00:00
jruoho
8cbe414029 Add few simple tests for getrusage(2), including heuristic for PR # 41734. 2011-04-06 05:53:16 +00:00
jruoho
1640c99fcf Remove redundant memset(3) calls. 2011-04-06 03:47:14 +00:00
jruoho
6e7cc21a77 Fix small boolean oversight. 2011-04-05 19:06:09 +00:00
jruoho
28d491ccd9 Basic tests for setrlimit(2). 2011-04-05 19:02:22 +00:00
jruoho
01072bafe8 Rename some tests. No functional change. 2011-04-05 14:04:42 +00:00
martin
a6b6413efc On 64 bit archs, if supported, also test -m32 binaries and their execution
(both static and dynamic).
XXX should the arch test and compiler support for -m32 test be moved to
init_test_cases, and the test only be added if supported?
2011-04-05 09:53:10 +00:00
jruoho
1cd1da49e9 Try to maintain the structure of libc and move 't_strtox' to 't_strtod'. 2011-04-05 08:24:28 +00:00
jruoho
e14810828f Add simple test cases for ttyname(3), strtod(3), and getgrent(3). 2011-04-05 06:15:30 +00:00