yamt
eb988d97e6
fix comment typos pointed out by uebayasi
2014-01-21 00:32:16 +00:00
yamt
d1e900e606
- fix funopen usage
...
- some more checks
- remove a bogus test case (bad_eucJP_getwc) PR/47660 (Julio Merino)
- add XXX comments
2014-01-20 14:14:56 +00:00
apb
2a9bf57a9d
Remove -O0 from CPPFLAGS, and instead set
...
COPTS.testlang_parse.c += -Wno-uninitialized.
Without the old -O0, and without the new -Wno-uninitialized,
gcc issues this bogus error:
testlang_parse.y:1400:8: error: 'cmd' may be used uninitialized in this function
2014-01-19 22:09:34 +00:00
apb
20cabc6645
Remove "-g" from CPPFLAGS and LDFLAGS in curses tests.
...
The debug information contains embedded references to the src directory,
which is bad for reproducible builds.
2014-01-19 21:50:17 +00:00
gson
544eb11262
When using braces around shell variable names, do so consistently
2014-01-13 11:08:14 +00:00
gson
feb2d702d7
Add missing resolv.conf override to the gethostbyaddr6 test case.
2014-01-13 10:49:47 +00:00
martin
4f7da0ce19
New gcc can reuse stack frames for tail calls, so "main" is an optional
...
frame as well.
2014-01-11 19:48:22 +00:00
martin
030abcd2da
Make the output of the test case better suited for debugging (output full
...
backtrace before failing any unclear asserts)
2014-01-11 19:13:41 +00:00
gson
341c8e68ed
Remove comment that no longer applies.
2014-01-10 20:38:11 +00:00
martin
99caaa63e9
In the strcat test, smash the stack more severely (this all may depend
...
on alignment and stack frame details).
The gcc folks disagree with this test in general:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59750
2014-01-10 10:45:34 +00:00
christos
c0cdf73e1c
Add a cleanup routine because if a test fails, the script exits and the
...
rest of the code is not executed.
Note that the cleanup routine is executed in a separate shell so environment
variables are not propagated and need to be set again.
2014-01-10 01:43:55 +00:00
christos
0560f419d3
fix copyright botch and add library for netinet6; still does not fix the
...
problem.
2014-01-09 14:07:31 +00:00
christos
cca81d599b
Use our own resolv.conf file simplifying the test to not need rump_vfs.
...
Add debugging on the dns server
One test fails (gethostbyaddr6) why? It runs without rump
2014-01-09 02:18:10 +00:00
gson
46f418f7e1
Fix spelling of "daemon". Pointed out by Thomas Klausner.
2014-01-06 16:42:57 +00:00
gson
e54ff2dc1b
Make t_hostent test cases that query the DNS work on systems with no
...
Internet connectivity, by hijacking DNS queries and /etc/resolv.conf
accesses using librumphijack and providing a minimal DNS server to
answer the queries.
2014-01-06 14:50:32 +00:00
pooka
c7edf59387
netstat expected output includes ipv6 sucket, so add netinet6
2014-01-03 13:18:00 +00:00
christos
9a6b9e13f8
sixthavenue got upgraded
2013-12-20 20:22:26 +00:00
martin
714f2fc9c2
Add stack alignement test for sparc
2013-12-12 11:22:26 +00:00
matt
414bfc7e2c
Add stack alignment checks for alpha, arm, mips, powerpc, and vax.
...
Fix makefile to support MACHINE_CPU
2013-12-11 17:31:55 +00:00
martin
f758bf64d6
Adjust expected epsilon for sqrtl <-> powl comparisions for defects in
...
powl (which actually is pow for now)
2013-11-22 17:19:14 +00:00
blymn
c9f5d99795
Add carriage return to list of valid character substitutions.
2013-11-21 11:08:08 +00:00
blymn
d77ae47228
Add carriage return to the quoted character list
2013-11-21 11:06:04 +00:00
joerg
f63f9867dd
Add cbrtl(3) and sqrtl(3), from FreeBSD.
2013-11-19 19:24:33 +00:00
martin
2e8fa30d93
Add stack alignement checking for sparc64
2013-11-15 20:00:20 +00:00
skrll
b6090b2a1d
Check stack alignment on hppa.
2013-11-15 11:48:30 +00:00
rmind
d0748eb941
- Add bpf_args_t and convert bpf_filter_ext() to use it. This allows the
...
caller to initialise (and re-use) the memory store.
- Add bpf_jit_generate() and bpf_jit_freecode() wrappers.
2013-11-15 00:12:44 +00:00
joerg
cbc2f8caeb
Add FreeBSD's truncl and minimal testing.
2013-11-13 12:58:11 +00:00
joerg
d0d4402155
Initial version of fmodl from FreeBSD.
...
Basic test case for the fmod family.
2013-11-12 16:48:39 +00:00
joerg
2e412cf6b8
Add initial version of ceill, floorl and roundl from FreeBSD.
2013-11-11 23:57:34 +00:00
joerg
70f0cfa164
NetBSD 6.99.26: Switch i386 and amd64 to the x87 default control word
...
as initial value for new processes. This means that long double
computations get the expected 63bit mantissa. Binaries tagged as
compiled for 6.99.25 and older get the old value.
Add a simple test case to ensure that double and long double computation
are working correctly.
2013-11-11 11:10:45 +00:00
blymn
f3ae62b834
Update check files to match fixed behaviour for addchstr
2013-11-09 11:18:12 +00:00
christos
ddd5644b2e
Handle new objc for gcc-4.8.1. Someone with more objc foo can do this better.
2013-10-31 21:02:11 +00:00
joerg
5e2fc1bbd3
Only initialise TLS space from the PT_TLS segment, if the size is
...
positive and the offset has been computed. Fixes PR lib/48324.
2013-10-21 19:14:15 +00:00
joerg
7ce95f3734
Revert, init-exec in combination with initalised TLS variables is not
...
supported.
2013-10-21 19:11:17 +00:00
christos
14e652625e
broadway changed addresses.
2013-10-20 17:22:49 +00:00
joerg
744547edc2
Force use of static TLS space.
2013-10-20 13:30:50 +00:00
christos
d56fcfc956
fix unused variable warnings
2013-10-19 17:45:00 +00:00
christos
05546cf9db
build the .h before the .o
2013-10-19 17:28:38 +00:00
martin
7e7cfe75c0
Retry previous
2013-09-16 15:33:24 +00:00
martin
0422e3f47d
Make it compile on archs where NAN is not defined - previously it only
...
compiled by chance (and details of the __isnan macro) on vax.
2013-09-16 15:22:51 +00:00
christos
0f567347d0
test harness for gethostbyname()/gethostbyaddr() and their internal bits.
...
XXX[1]: How can we avoid using hard-coded hosts for DNS
XXX[2]: How do we test NIS?
2013-08-16 15:29:45 +00:00
martin
34f5799411
Prevent inlining of the main testcase body function.
...
Do not mark the inner functions static, as they might get cloned then
(ending up being called "myfunc3.clone.3" instead of "myfunc").
2013-08-16 11:57:15 +00:00
joerg
cf7d2ab7ad
Now that all architectures default to unwind data, remove the failure
...
for !amd64.
2013-08-15 12:42:25 +00:00
pgoyette
f6bf860e63
Arghhh! Typo.
2013-08-08 05:10:07 +00:00
pgoyette
26735a61a7
Add a new test case for snprintb_m(3) to catch previous boundary bug.
2013-08-08 04:52:10 +00:00
skrll
548b029c20
Increase timeout. My hardware must be getting slower.
2013-07-29 10:43:15 +00:00
skrll
5fad374c29
There wasn't a codegen bug - the test program itself was buggy.
...
Nothing to see hear... move along.
2013-07-24 11:45:48 +00:00
skrll
114c94b6cd
Fix msgsz confusion.
2013-07-24 11:44:10 +00:00
skrll
ea7eb28732
Compile tests/lib/libc/sys/t_msgrcv with -O0 on hppa to avoid compiler
...
bug.
2013-07-23 07:04:18 +00:00
tron
c8ccd84f1f
Fix build with stack-protection enabled.
2013-07-21 15:29:04 +00:00
joerg
e3f0a6cadb
Put the vfork at the end.
2013-07-05 09:55:39 +00:00
joerg
8f5b02bd33
Use conditional calls to vfork() to prevent the compiler from inlining
...
the intermediate stack frames. Mark the __start frame as optional.
2013-07-04 23:53:13 +00:00
isaki
0a3e12024b
Remove header files which became unnecessary in 1.7.
2013-06-14 05:39:28 +00:00
joerg
44c2dc6e5d
Make back trace more robust. At least on i386, one of the intermediate
...
functions in ATF is not replaced by tail recursion elimination, so
mark it as optional.
2013-06-06 17:40:09 +00:00
joerg
85a67e61f7
Add mbsnrtowcs and wcsnrtombs. Approved by core.
2013-05-28 16:57:56 +00:00
martin
dbc87f74ee
Backout previous - real fix for vax libm upcoming.
2013-05-24 11:47:13 +00:00
christos
fdb7536171
vaxinate the new tests.
2013-05-23 20:45:47 +00:00
martin
85d85a185b
Add a few test cases to test "ordinary" values with the various scalbn
...
variants. While there, make some spuriously failing tests print out the
broken values on failure.
2013-05-20 12:21:42 +00:00
skrll
3defc39379
Whitespace
2013-05-05 10:26:57 +00:00
joerg
fcfab139c2
Since the mktemp test case uses mktemp, make linker warnings non-fatal.
2013-04-25 13:34:09 +00:00
christos
42e0c394d3
new mktemp test
2013-04-22 21:05:12 +00:00
martin
18d840f0c0
Backout previous - which did not include the change described in the log
...
message anyway but pure accidental white space changes. The whole change
was not needed any more after fixing isqemu.h.
Thanks to agc for pointing it out.
2013-04-14 16:03:06 +00:00
martin
a4fee3e85d
Mark the test function as inline, so we don't get warnings if it is not
...
actually used.
2013-04-14 12:46:29 +00:00
martin
152c21a77c
Do not include isqemu.h if we are not going to use the test
2013-04-14 12:45:50 +00:00
christos
64d9d8eefb
use one qemu test
2013-04-12 17:30:50 +00:00
christos
57ecabebfd
don't pay for sysctl if we don't have to.
2013-04-12 17:21:04 +00:00
christos
1e97173517
loosen the test only for qemu.
2013-04-12 17:18:11 +00:00
christos
427032d97c
easier way to find if we are on qemu.
2013-04-12 17:13:54 +00:00
gson
44da6cec61
Make cond_wait_mono and cond_wait_real tests accept a wait time in the
...
range of 90% to 250% of nominal, to allow the test to pass under qemu
which has a known issue where timing can be off by a factor of two.
2013-04-12 14:21:52 +00:00
christos
14ac21b358
Add new tests sources for event2.
2013-04-11 17:00:12 +00:00
isaki
0c8b5b215f
Use a pre-calculated value as expected result, instead of
...
comparing it in a mathematical formula.
PR lib/46434 (and see also 46433).
2013-04-09 12:11:04 +00:00
isaki
ffc77545dc
Tune the epsilon about each value for exp{,f}_product.
2013-04-09 11:42:56 +00:00
christos
0ef49f62d1
add more test cases for nanosleep
2013-03-31 16:47:16 +00:00
christos
3993b5d374
fix printf formats
2013-03-29 02:32:38 +00:00
christos
dd14258bb5
Add pthread_cond_timedwait(3) test from PR/47703
2013-03-28 18:50:01 +00:00
gson
1189f7bcc3
Don't size an array using MB_CUR_MAX while one locale is in effect and
...
then use it with another locale having a larger MB_CUR_MAX. This
should fix the t_wctomb:wcrtomb_state test failures seen on i386.
2013-03-25 15:31:03 +00:00
christos
a4ddc2c8fb
new dlopen tests for libpthread from manu@
2013-03-21 16:50:21 +00:00
isaki
3e866cf1f6
Fix and revive test of atan_inf_neg, atan_inf_pos and atan_tan on i386.
...
PR port-i386/46108.
The machine epsilon 1.0e-40 is too severe and nonsense for double
because DBL_EPSILON is about 2.2e-16 . I think that 1.0e-15 is
enough good, in this case.
XXX However, test of atan_tan should be replaced for other reasons.
2013-03-21 02:10:52 +00:00
jmmv
051a1f53b0
Do not special-case qemu when expecting the failure due to PR kern/43997.
...
I am sporadically observing this in my real machine as well. It's harder
to trigger, but it happens.
2013-03-17 05:47:48 +00:00
jmmv
33af199a4a
Try to trigger the cond_timedwait_race race several times.
...
Sometime this tests passes (after all, it's exercising a race condition) and
when it does it's reported as a failure. By giving the test a few chances
to expose the problem, we prevent this noisy signal. When the race is really
addressed, this will start failing consistently as expected.
2013-03-17 05:13:13 +00:00
jmmv
5ac530f373
Mark two routinely-broken tests as expected failures referencing PR lib/47660.
2013-03-17 05:02:13 +00:00
jmmv
2be7ebf7e2
Remove unnecessary cleanup routines.
2013-03-17 04:46:06 +00:00
jmmv
042bde1174
fexecve is not implemented, so mark the test as an expected failure.
...
While doing this, clean this whole thing: do not define a useless cleanup
routine and wait for the subprocess to finish instead of using sleep.
2013-03-17 04:35:59 +00:00
christos
d3d55324bd
check return values
2013-03-17 02:23:31 +00:00
martin
2be5afec8a
Sharpen the "return imediately" test case and fix/uncomment the "wait untill
...
signal" one.
2013-03-08 23:18:00 +00:00
martin
faea3b9e87
Rename testprogram and make it more general by adding other testcases.
...
One commented out, I didn't manage to get all signal handling correct
for now.
2013-03-08 17:01:54 +00:00
martin
90ba9be35f
Add a test program for PR kern/47625, based on the sample code provided
...
by anthony mallet.
2013-03-08 10:33:51 +00:00
christos
f529593485
regression tests for wide char i/o. Currently there are failures.
2013-02-28 21:52:02 +00:00
christos
1790c3d9d5
remove the timeout; it is handled internally.
2013-02-28 15:56:53 +00:00
christos
1b48e11e47
skip the tests if rpcbind is not responding.
2013-02-27 18:39:58 +00:00
christos
d7abae09ac
Add a test for the rpc getaddr bug lib/13082.
...
Timeout added, but it needs rpcbind to be running to succeed.
2013-02-26 17:06:55 +00:00
jmmv
7d3a48f1d2
Hook Lutok into the build. This is all protected by the MKKYUA guard.
2013-02-16 21:40:05 +00:00
christos
d2ff78394b
don't brk the build.
2013-02-15 23:56:32 +00:00
christos
9bb501f7a5
look at my index finger
2013-02-15 23:27:19 +00:00
christos
81516a9702
- check the results of the vis functions
...
- zero output to make sure things work
- don't use encodings that don't work
- fix the style on decoding
2013-02-13 04:51:56 +00:00
christos
e40152f801
check the results of encoding and decoding
2013-02-11 04:12:48 +00:00
mbalmer
c826b564cf
exitting -> exiting.
2013-01-27 14:47:37 +00:00
christos
1f1bab53b7
rename the only use of HAS_SSP in the tree to HAVE_SSP.
2013-01-27 02:32:39 +00:00
christos
f564ab2a22
Don't include bsd.sys.mk; like sys.mk it is supposed to be used only
...
internally.
2013-01-26 21:58:41 +00:00
apb
a39eba5e76
Test parsedate("@-2",...) (should return -2 and not set errno);
...
and parsedate("@junk",...) (should return -1 and set errno).
We were already testing "@-1".
2013-01-19 15:21:43 +00:00