Commit Graph

1284 Commits

Author SHA1 Message Date
martin 87d689fb73 Sync sparc with sparc64 2018-01-14 19:59:51 +00:00
martin 30d82e28be Implement helper function for alpha 2017-12-30 16:35:03 +00:00
christos 8008d9c3e9 mips panic should be fixed on head. 2017-12-28 18:41:33 +00:00
kamil 994e8d0d72 atf: ptrace: Temporarily skip fpregs* tests on pmax
NetBSD/pmax 8.99.9 panics when attempting to use fpregs through ptrace(2).

Sponsored by <The NetBSD Foundation>
2017-12-28 09:47:52 +00:00
kamil 0c4b31088a atf: ptrace: Temporarily disable signal3 as it breaks now on some ports
This test is marked as failing with: PR kern/51918.
2017-12-27 13:38:51 +00:00
kamil 7db1f47f48 atf: t_ptrace_wait: Mark attach2 as racy 2017-12-25 12:38:01 +00:00
christos 57ab0cb5b9 fix priority tests for SCHED_OTHER 2017-12-24 17:37:23 +00:00
christos 17ceb61284 report which errno failed 2017-12-23 22:07:57 +00:00
kamil 8bb892187e ptrace atf: Clanup reports of failures
Mark resume* suspend* tests as expected failure and link with PR 51995.

Sponsored by <The NetBSD Foundation>
2017-12-22 17:35:14 +00:00
kamil 1432f3fc87 t_ptrace_wait*: Disable suspend* tests
These tests can hang the system. These interfaces will be improved and
temporarily disable them.
2017-12-21 09:56:47 +00:00
christos 1abf1d7802 Fix broken test: we can't assume that the current schedule priority range
will overlap with the requested scheduler range, so get the new scheduler
range, and then try to find a different priority. If that fails (to find
a different scheduling range), give up here.
2017-12-21 03:31:43 +00:00
christos 3a05faa2d8 make it fail instead of hang under qemu; XXX: need to investigate. 2017-12-18 19:20:40 +00:00
christos a0fb54ab67 Don't use SCHED_OTHER. 2017-12-18 13:18:23 +00:00
christos 1cbfcb1c83 Add expected failures. 2017-12-16 14:45:25 +00:00
christos 3bbd410a66 sync a bit more with reality; some things still fail, some new failures.
reduce spewage, be more explanatory about syscall errors.
2017-12-14 22:06:54 +00:00
rin d4c8f2d859 Revert rev 1.4: fmtcheck(3) neglect unused trailing arguments as before.
"%d" is a valid format string with default format string "%d %s", etc.
2017-12-13 06:47:04 +00:00
christos af7e02e58a Remove expected failure (fixed in kern_sig.c 1.339) 2017-12-10 14:09:42 +00:00
kre 20fdaa6a50 Update this test to expect the output that is supposed to be produced
by strfmon() rather than the output the old buggy implementation used
to produce.
2017-12-07 22:23:14 +00:00
kre 38400c3efe Correct a couple of broken test cases:
"%d"  does not take the same args as "%d %s"
	"%%"  does not take the same args as "%llx"
How did these ever survive any kind of even basic sanity check?
2017-12-07 09:37:33 +00:00
kamil 7a515d1c37 Temporarily disable t_ptrace_wait*::resume1 in ATF tests
It hangs forever on releng machines.

Sponsored by <The NetBSD Foundation>
2017-12-04 12:53:46 +00:00
kre e55c81dc8f Since there has been no objection (or even comment) in response
to my message on tech-userlevel ...

    Subject: tests/lib/libpthread/t_mutex:mutex6
    Date: Thu, 23 Nov 2017 17:34:54 +0700
    Message-ID: <28385.1511433294@andromeda.noi.kre.to>

which can be found at:
	http://mail-index.netbsd.org/tech-userlevel/2017/11/23/msg011010.html

which analysed the mutex6 test case of this test, and concluded
that it was useless, nonsense, and broken (the whole test is just a
race - not even really using or testing mutexes), let it be henceforth
forever gone.
2017-12-01 13:25:29 +00:00
kre 3772e94e67 Since the C standard allows for intermediate floating results to contain
more precision bits than the data type expects, but (kind of obviously)
does not allow such values to be stored in memory, expecting the value
returned from strtod() (an intermediate result) to be identical (that is,
equal) to a stored value is incorrect.

So instead go back to checking that the two numbers are very very close.
See comments added to the test for more explanation.
2017-12-01 01:08:35 +00:00
kre 52a978120f Revert 1.4 (perhaps temporarily) and add even more diagnostics to those
added in 1.3 to see if it is possible to determine why the strict equality
test fails on i386, yet succeeds elsewhere.
2017-11-28 23:26:01 +00:00
kre fa3a535c5c When comparing doubles (any floating point values) which have been
computed using different methods, don't expect to achieve identical
results (here, one constant is perhaps converted to binary from a string by
a cross compiler, the other is converted at run time).   Allow them to
have a small difference (for now, small is < 1e-7 - the constant is ~ 1e5,
so this is 12 orders of magnitude less) before failing (and include the
actual difference in the error message if it does fail.)
2017-11-24 21:30:43 +00:00
kre b19b969600 Add some diagnostics to the strto test, so I can see why this
fails on i386 (on qemu) - will probably keep them when done.
2017-11-23 23:47:09 +00:00
kre 1cec45a93f PR lib/52007
Move libevent from being a test playing sub-directory, to a groupy,
just hanging around, hoping someone will notice it, and throw it
a bone...  (mixed metaphors?)
2017-11-23 02:40:01 +00:00
martin 7886ea7b21 PR kern/52167 strikes on sparc64 too. 2017-11-18 17:00:00 +00:00
kre 4559590210 In the fopen_regular and fopen_symlink tests, when (that is, if) a
failure occurs, distinguish in the failure message the cases where the
open succeeded (and should not have), and where it failed, but not for
the expected reason (the "wrong errno" case not tested, would require
manufacturing a broken kernel...).

Add O_NOFOLLOW ('l' mode modifier) tests to the fopen_mode test case
(tests that are intended to open the file) and also add a few missing
commas which were causing a few of the sub-tests to be skipped, and
others to be not quite testing exactly what was intended.
2017-11-06 23:06:55 +00:00
christos f3898d4d3b add a symlink test 2017-11-06 17:32:53 +00:00
christos 38e7108a2d fix typo 2017-10-28 19:25:31 +00:00
christos 8bf35d4ee1 make tests print the values. 2017-10-28 19:24:55 +00:00
kre 001379fb42 The Zone test was obviously intended to test %Z rather than %z, otherwise
it would be (and has been) identical to the zone test, which would be a
pointless waste of time.
2017-10-27 05:14:11 +00:00
kre 934582a916 Remove bogus errno checks, mktime() (and timegm()) does not guarantee
to leave errno unaltered if there is no error.   And does not.

While here, write -1 the same way everyone else does (not ~0, which
would not even be negative on a 1's complement host, if you can find one).

And while not needed for the test, but so that if checked, the result is
more likely to be what is anticipated, set tm_mday to an in-range value
in the mtime_negyear test (otherwise the correction results in the result
movng backwards to the last day of the previous month, which is the
end of Decemper, 1898, rather than the 1899 one would expect from year -1.)
2017-10-27 00:55:27 +00:00
ryo 638374d825 add test case for new format 'f' and 'F' 2017-10-14 18:41:44 +00:00
kre 97beabe6b7 Don't bother attempting any of the (real) test cases if the SYSVMSG
option isn't configured in the kernel.
2017-10-08 08:31:05 +00:00
kre 1b3e61a16f Skip the mincore_shmseg test case if the SYSVSHM option is not configured
in the kernel.
2017-10-08 08:29:57 +00:00
kre 6618a9bf1f If we have SYSVMSG in kernel (test finds it) restore the signal handler
to its previous state, so any signals that occur during the rest of the
test gat handled just as they would (core dump) as if the handler was never
executed.   No need to bother if the SYSVMSG test fails, as in that case,
nothing else will be done anyway.
2017-10-07 17:15:44 +00:00
kre 4ad1e3d9c8 Make this test skip if running on a kernel without the SYSVMSG option.
(Assuming this behaves as intended the other tests which should behave
the same way will get upgrades as well.)
2017-10-06 17:00:28 +00:00
wiz 2168981001 Fix verb form. 2017-09-03 13:41:19 +00:00
maya d498d301ce Use a global double to stop GCC from optimizing the test away
Better diagnostic messages
More familiar test for 'even number'
2017-09-03 13:29:55 +00:00
kre 5f35bae3a5 Allow the test to build on systems where sys/mman.h does not provide
PROT_MPROTECT(), or if the test is built without _NETBSD_SOURCE defined,
by providing a dummy #define if the real one does not exist.  The test
might then fail, if the PROT_MPROTECT() is really needed, but that's
better than not building.
2017-09-01 16:51:58 +00:00
kre 70238ca755 Use PROT_MPROTECT() (which would have been better had it been called
PROT_MAXPROTECT or PROT_ALLOWPROTECT or something) on the mmap() call
which specifies PROT_NONE, and which we later want to change to PROT_READ,
otherwise when PAX is enabled, the mprotect() will fail.
2017-09-01 16:27:02 +00:00
maya cab44f07e4 Add a short case for the alpha test failure
Now I see it's down to the choice of -mfp-trap-mode (n works, su/sui/u don't)
2017-08-30 22:55:41 +00:00
maya 63a1be2348 use PRIu64 to print uint64_t, don't print sizeof
fixes build. sorry, built tested an older version for 32bit.
2017-08-30 14:24:20 +00:00
maya ba15b3ff94 Add test case for alpha's MPFR config test failure
This assert fires with -mieee, but not without it.
2017-08-30 10:51:06 +00:00
ginsbach af29f831e2 PR/49003: Ngie Cooper: add <sys/time.h> 2017-08-25 22:59:47 +00:00
ginsbach 8f3f249e43 The military/nautical time zones were added following RFC 822 and RFC
2822 specifications.  Unfortunately they are specified incorrectly in
RFC-822 and not very clearly in RFC 2822. RFC 1123 clearly states they
are specified incorrectly - counting the wrong way from UTC - in RFC
822.  RFC 2822 just states they were implemented in a non-standard way.
Mea culpa for not noticing when originally implemented.  Fix them so
the correct calculations are made.
2017-08-24 01:01:09 +00:00
christos 50d315db6e Add test from PR/52499 2017-08-23 10:29:51 +00:00
christos c59e7c75da don't skip nexttoward for aarch64 and mips64 2017-08-21 17:11:18 +00:00
christos 87415b4d75 fix build (missing nexttoward on mips64 and aarch64) 2017-08-20 08:25:47 +00:00