Commit Graph

689 Commits

Author SHA1 Message Date
martin 236eac060e Remove check for GLOB_NOCHECK - the behaviour has been changed again, so it
will return a modified pattern.
2013-01-02 11:28:48 +00:00
christos 3f1c66c5a0 - make our stat function return ENOENT if a file is not found.
- add a GLOB_NOMATCH check
2012-12-18 01:37:28 +00:00
jruoho f8b5dc2c31 Move the bitmap(3) test to the "right" place. Note it in bitops(3). Xrefs. 2012-12-04 06:57:44 +00:00
pgoyette 826c760e5d Helper programs are programs, not tests, so build them appropriately.
Thie removes the need for custom Atffiles whose only purpose was to exclude
the helpers that had been built as tests.
2012-12-02 17:36:10 +00:00
christos b8815f50dc Add a bitops test 2012-12-01 16:27:27 +00:00
martin b954a04ff6 Skip kqueue_unsupported_fd if the drvctl device is not present. 2012-11-29 09:13:44 +00:00
christos 0156034a08 Add a test for adding an event to an unsupported fd. 2012-11-24 15:05:45 +00:00
martin 5873910091 Split the test cases where root/non-root makes a difference in two and mark
them apropriately. Exact permission semantics are still under discussion,
this will have to be cleaned up once that discussion is settled.
For now, one test cases fails.
2012-11-23 08:24:20 +00:00
martin ee21bbfc8f 0-terminate strings returned by readlinkat 2012-11-22 20:17:48 +00:00
martin d875702485 Compare against modification time instead of creation time - which we did
not set.
2012-11-22 14:59:59 +00:00
martin 13981c9510 Fix off by one in static array acces, use valid timestamps (ns part < 1e9),
just in case a filesystem would need to convert this to some other
representation.
2012-11-22 14:51:19 +00:00
martin 26d64ddcc4 Mark a few tests that require root 2012-11-20 20:01:14 +00:00
martin 0b640008be Do not require tv_nsec to be != 0 but instead require equality with the
test value.
2012-11-19 16:07:56 +00:00
manu a76c1cc17f Add most system calls for POSIX extended API set, part 2, with test cases:
faccessat(2), fchmodat(2), fchownat(2), fstatat(2), mkdirat(2), mkfifoat(2),
mknodat(2), linkat(2), readlinkat(2), symlinkat(2), renameat(2), unlinkat(2),
utimensat(2), openat(2).

Also implement O_SEARCH for openat(2)

Still missing:
- some flags for openat(2)
- fexecve(2) implementation
2012-11-18 17:41:51 +00:00
alnsn 062bf78a84 Build libbpfjit test to the build. 2012-11-11 17:41:31 +00:00
alnsn 65b4b42177 Add libbpfjit test. 2012-11-11 17:37:34 +00:00
pgoyette 922089c955 More clean-up, and adjust timing of kevent test to avoid issues with
PR kern/43887
2012-11-09 20:13:24 +00:00
pgoyette 8ff87897e6 Remove unnecessary header file and an unused variable.
Adjust timing parameters to reduce overall elapsed time, and document
the parameters.
Clean-up status handling for kevent test.
Deal with QEMU timer-related issues (PR-43997).
2012-11-09 04:43:25 +00:00
pgoyette c75e6b56d0 Provide clear explanation of test-case failures. 2012-11-08 16:33:26 +00:00
pgoyette 57f73370f4 Remove a debug printf(), and fix the format in another.
Should resolve build break.
2012-11-08 04:58:44 +00:00
pgoyette 82f50f620a Convert old src/regress/timer&waiter tests to ATF 2012-11-08 03:13:47 +00:00
pgoyette 251231b58b Merge in the minimal test from the old src/regress/sys/kernel/sigtramp
test.
2012-11-07 16:51:16 +00:00
alnsn ffd8736098 Build sljit test when MKSLJIT != no and set MKSLJIT to yes on amd64 and i386. 2012-11-05 00:57:39 +00:00
alnsn a9b4cc4551 Add userspace libsljit test. Not hooked into build yet. 2012-11-05 00:34:28 +00:00
christos 6298c31a51 add missing includes 2012-11-04 23:37:02 +00:00
skrll 2392c04529 Simplify 2012-09-27 09:56:21 +00:00
martin d70931dac7 Add missing include <stdlib.h> 2012-09-27 08:19:18 +00:00
joerg fe9380cfbd Add regression test for cdbr(3) and cdbw(3). 2012-09-27 00:38:57 +00:00
christos 908d2159b9 make the test more precise. 2012-09-27 00:37:56 +00:00
joerg aef403d694 Fix year. 2012-09-26 22:23:30 +00:00
jruoho 85dbe713e8 Remove expected failures that no longer fail (probably due a Qemu update). 2012-09-26 07:24:38 +00:00
joerg 2b3d1ee8a7 Update LLVM/Clang snapshot to r164464. This adopts the GCC options for
the SSP parameters and a not-yet-default rewrite of SROA.
2012-09-23 17:22:22 +00:00
blymn a76c5dee4e * Add scanw family function calls as input functions 2012-09-19 11:51:56 +00:00
blymn d537772cd3 * Fix mvscanw return
* Fix the *vline family of calls, one argument is chtype not int
2012-09-19 11:51:08 +00:00
plunky baa3f70feb correct spelling of file to clean 2012-09-15 16:22:58 +00:00
manu bba80928a8 setcontext() used to be incompatible with -lpthread since it affected
the TLS pointer, therefore wrecking the pthread environement.

Some ports had _UC_TLSBASE flag or equivalent (_UC_UNIQUE on alpha)
that controlled whether setcontext() would change the TLS pointer.
This change let libpthread override setcontext() with its own version
that unsets _UC_TLSBASE, enabling safe usage of setcontext() with
-lpthread.

We also have the following required changes here:
- rename alpha's _UC_UNIQUE into _UC_TLSBASE
- add _UC_TLSBASE definition in header file for all ports
  (powerpc, sh3, sparc and sparc64 lack the implementation for now)
- introduce a libc stub that can be overriden for setcontext()
- modify MD libcs swapcontext() implementations so that they use the
  setcontext() libc stub instead of doing a plain system call.

While we are there:
- document various MD _UC_* flags in header file
- add libc and libpthread tests for swapcontext() behavior
  (hopefully helpful to spot MD problems introduced with this change)

Future work:
- Deciding whether kernel support or _UC_TLSBASE should be added for
  powerpc, sh3, sparc and sparc64 is left to portmasters
  sparc64

Approved by core@
2012-09-12 02:00:51 +00:00
martin 2b68f1748c Make this compile on archs where VM_MIN_ADDRESS is not defined (or not
exported to userland)
2012-09-08 12:25:05 +00:00
martin 69c011c56b Deal with architectures defining VM_MIN_ADDRESS > 0.
Add additional error code tests using a pointer one page past current brk.
2012-09-07 20:27:12 +00:00
christos 1375b73fd3 whitespace 2012-09-03 15:32:18 +00:00
jmmv e7d178251c Sanitize the regex test cases.
- Merge h_regex_att (att.c) and t_regex_att.sh into a single C test program.
  The former was really a test program, and the latter just a very strange
  driver for it.

- Stop using awk to generate the shell test programs.  This is unnecessary
  and confusing.  Instead, change t_regex.sh to generate the test case
  functions on the fly with eval (as done in many other places).
2012-08-24 20:24:39 +00:00
pgoyette 1cf0fdecbd Fix more fallout from the changes to nfsd's command-line options 2012-08-16 12:57:24 +00:00
christos cb461c6808 Exclude tests that use rump 2012-08-08 13:57:05 +00:00
riastradh 16b71d29d9 Implement link(2) in rumphijack. Add a couple trivial test cases. 2012-08-04 03:56:47 +00:00
christos 291dafda34 tests for recvmmsg 2012-06-22 18:45:23 +00:00
bouyer c3ff6f17e5 Disable the mmap_block test again, it doesn't panic when mmaping /dev/wd0d
only by accident. PR kern/46592.
2012-06-14 17:47:58 +00:00
njoly e1828ac1bb Skip sigbus_adraln testcase on alpha unless global
machdep.unaligned_sigbus sysctl is enabled.
2012-06-13 11:45:17 +00:00
christos c38c69a23f check thread limit 2012-06-12 23:56:19 +00:00
martin b0ac20cc38 Degrade all intermediate failures due to memory/resource shortage to
"skip" instead of "fail" - only if we get through to the real meat, we
can tell wether mlockall/mincore work or not.
2012-06-08 07:18:58 +00:00
martin fd9e5c02e3 Revert previous - instead of guessing the amount of needed memory locked
limits (often way too high) and skipping the test case if in doubt,
raise the limits as far as we can, and fix a few places in the test where
we could run into the limits and either skip or fail with a reasonable
message.
2012-06-07 09:59:51 +00:00
martin 7a598c266d Try to estimate the number of locked pages the mincore() test will need and
check it against resource limits, skipping the tests if it probably is too
low.
2012-06-05 08:44:21 +00:00