Commit Graph

1808 Commits

Author SHA1 Message Date
mlelstv
5319147235 Now use correct test files and pass child failures to test function. 2013-04-20 09:00:03 +00:00
mlelstv
86479a1389 First attempt at stress testing umount of a busy disk. 2013-04-16 22:05:44 +00:00
martin
1f299de05d The sh api calls it atf_expect_fail, while the c api calls it
atf_tc_expect_fail - this is shell, so fix the names accordingly.
XXX Why do they differ?
2013-04-14 16:07:46 +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
19e338409a don't run with -n if you expect protocol translation from number to name. 2013-04-07 19:14:03 +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
martin
99e62f4068 Fix argument order for "n14" 2013-03-19 13:23:58 +00:00
martin
19ec7b0e9f Mark a few more test cases known to only work by chance as failing
and point to PR 47665.
Julio: how do we make such cases not fail when they actually happen to
work (by pure luck)?
2013-03-18 20:03:56 +00:00
jmmv
371c38e8cf These tests are flaky so mark them as expected failures... when they fail.
See PR kern/47661.
2013-03-17 06:29:55 +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
jmmv
ebd45a6ca9 Mark some long-standing failures as known failures.
The offending tests are these:
- t_filter_exec: f26, f27.
- t_filter_parse: i17.
- t_nat_exec: n12.

These tests are confirmed to fail in NetBSD/current under amd64, i386 and
sparc as reported by the continuous testing systems.
2013-03-17 03:00:05 +00:00
jmmv
2f611e9f98 Fix the t_renamerace:lfs_renamerace_dirs test on fast machines.
This test was failing on my machine when run natively but not causing any
problems when run within qemu, and the failure was "mkdir: No space left
on device".

My understanding of the issue is that this test overflowed the temporary
disk image due to its high rate of file churn and the lfs_cleanerd not
being able to keep up.  Note that this test is capped by time, not number
of operations, so this is why the problem does not show up in a slow
emulated system.

To fix this, just bump the test file system image limit a little bit.
(I tried increasing the frequency at which lfs_cleanerd does its thing,
but it wasn't enough.)
2013-03-17 02:48:31 +00:00
christos
d3d55324bd check return values 2013-03-17 02:23:31 +00:00
jmmv
0818487da7 Simplify test_mount and log errors.
If mount_tmpfs fails, show what the stderr output of the command was instead
of failing without details.

While doing this, remove the stupidity to deal with the optional arguments
to the test_mount routine.
2013-03-17 01:16:45 +00:00
jmmv
6005599c16 Use /bin/sh for a temporary script instead of querying the name of the
shell from atf-config.
2013-03-16 07:54:04 +00:00
jmmv
a8e674a6ba Mark a bunch of routinely-broken ZFS tests as expected failures. Point
them at PR kern/47656.
2013-03-16 05:45:37 +00:00
jmmv
c2e8322972 Mark the zfs tests as requiring root.
This is wrong.  The zfs tests already use rump so they should not require
root.  However, I've already spent much more time than I wanted trying to
figure out why that's the case without much luck.  If you can find why,
just remove this hack.
2013-03-16 05:24:59 +00:00
martin
11175263ad The CD emulator has been fixed, no longer expect the test to die. 2013-03-15 16:18:49 +00:00
jmmv
fcde6153ab Expect a crash in the noisyeject test. Mention PR kern/47646. 2013-03-14 06:43:32 +00:00
jmmv
d477a9c19e Prevent the sed command in c2048 from getting stuck.
Provide some unused input to the sed command in the c2048 test to prevent
the test from getting stuck waiting for input from stdin that will never
arrive.

I don't know why I'm hitting this now (might be a difference between atf-run
and kyua), but this is a bug in the test.
2013-03-14 06:03:44 +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
12e4d0500d Mystery solved: The build worked for me because the my src tree is in /usr/src.
Refer to the correct source tree instead of the conventionally correct one.
2013-03-06 13:36:50 +00:00
christos
5ae2c875b6 don't refer to things that are irrelevant or never existed. 2013-03-06 13:35:22 +00:00
christos
28c9d06150 Highly uncool to stash a partial copy of the ti-rpc code here. 2013-03-05 19:58:33 +00:00
christos
d614974138 use the proper fd_set.
XXX: Instead of making a copy of the libc rpc files here we should re-use the
files from libc, and use macros to provide the extra functionality needed here.
SoC project?
2013-03-05 16:54:08 +00:00
christos
3af68658a0 catch up with libc. 2013-03-05 05:39:54 +00:00
pooka
f467be3ba1 Rump kernel hypercalls are not necessary here. 2013-03-01 13:49:42 +00:00
christos
f529593485 regression tests for wide char i/o. Currently there are failures. 2013-02-28 21:52:02 +00:00
martin
0ed572c9e9 getsockname() needs a socklen_t, not a size_t 2013-02-28 20:41:21 +00:00