Commit Graph

696 Commits

Author SHA1 Message Date
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
apb
58e1304b9b * Test that parsedate("@0", ...) returns (time_t)0 regardless of timezone.
* Test that parsedate("@-1", NULL, NULL) returns (time_t)-1
  without setting errno.
2013-01-19 14:03:08 +00:00
pooka
ef30804ef1 Use TESTS_SUBDIRS instead of SUBDIR to make these actually run.
Also, fixes build with /usr/xpg4/bin/sh
2013-01-14 13:37:57 +00:00
dholland
ab137c90f7 Revert defective O_SEARCH implementation committed by manu@ along with
the *at system calls on November 18th of last year. Reasons to revert
it include:
   - it is incorrect in a whole variety of ways (but fortunately, one
     of them is that the missing and improper permission checks have
     no net effect);
   - it was committed without review or discussion;
   - core ruled that all the new O_* flags pertaining to the *at calls
     needed to wait until their semantics could be clarified.

manu was asked to revert it on these grounds but has ignored the request.

I have left O_SEARCH defined and visible and made open() explicitly
ignore it. This way, most code that tries to use it will continue to
build and run. I've also arranged lib/libc/c063/t_o_search.c so that
the tests that make use of the O_SEARCH semantics will disappear until
O_SEARCH comes back, and fixed some mistakes and/or incorrect hacks
that were causing some of these to succeed despite the broken O_SEARCH
implementation.
2013-01-13 08:15:02 +00:00
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