The NetBSD Project

CVS log for src/tests/lib/libc/sys/Makefile

[BACK] Up to [cvs.NetBSD.org] / src / tests / lib / libc / sys

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.32 / (download) - annotate - [select for diffs], Fri Mar 8 17:01:54 2013 UTC (2 months, 2 weeks ago) by martin
Branch: MAIN
CVS Tags: agc-symver-base, agc-symver, HEAD
Changes since 1.31: +2 -2 lines
Diff to previous 1.31 (colored)

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.

Revision 1.31 / (download) - annotate - [select for diffs], Fri Mar 8 10:33:51 2013 UTC (2 months, 2 weeks ago) by martin
Branch: MAIN
Changes since 1.30: +2 -1 lines
Diff to previous 1.30 (colored)

Add a test program for PR kern/47625, based on the sample code provided
by anthony mallet.

Revision 1.30 / (download) - annotate - [select for diffs], Tue Dec 4 06:57:44 2012 UTC (5 months, 2 weeks ago) by jruoho
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, tls-maxphys-nbase, tls-maxphys-base
Changes since 1.29: +1 -2 lines
Diff to previous 1.29 (colored)

Move the bitmap(3) test to the "right" place. Note it in bitops(3). Xrefs.

Revision 1.29 / (download) - annotate - [select for diffs], Sat Dec 1 16:27:27 2012 UTC (5 months, 2 weeks ago) by christos
Branch: MAIN
Changes since 1.28: +2 -1 lines
Diff to previous 1.28 (colored)

Add a bitops test

Revision 1.28 / (download) - annotate - [select for diffs], Wed Sep 12 02:00:55 2012 UTC (8 months, 1 week ago) by manu
Branch: MAIN
CVS Tags: yamt-pagecache-base6, tls-maxphys
Changes since 1.27: +2 -1 lines
Diff to previous 1.27 (colored)

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@

Revision 1.27 / (download) - annotate - [select for diffs], Wed Aug 8 13:57:06 2012 UTC (9 months, 1 week ago) by christos
Branch: MAIN
Changes since 1.26: +5 -2 lines
Diff to previous 1.26 (colored)

Exclude tests that use rump

Revision 1.26 / (download) - annotate - [select for diffs], Fri Jun 22 18:45:23 2012 UTC (10 months, 4 weeks ago) by christos
Branch: MAIN
Changes since 1.25: +2 -1 lines
Diff to previous 1.25 (colored)

tests for recvmmsg

Revision 1.25 / (download) - annotate - [select for diffs], Thu Jun 7 09:59:51 2012 UTC (11 months, 2 weeks ago) by martin
Branch: MAIN
Changes since 1.24: +1 -2 lines
Diff to previous 1.24 (colored)

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.

Revision 1.24 / (download) - annotate - [select for diffs], Tue Jun 5 08:44:21 2012 UTC (11 months, 2 weeks ago) by martin
Branch: MAIN
Changes since 1.23: +2 -1 lines
Diff to previous 1.23 (colored)

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.

Revision 1.23 / (download) - annotate - [select for diffs], Mon May 21 14:15:19 2012 UTC (12 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pagecache-base5
Changes since 1.22: +2 -1 lines
Diff to previous 1.22 (colored)

Calling _lwp_create() with a bogus ucontext could trigger a kernel
assertion failure (and thus a crash in DIAGNOSTIC kernels). Independently
discovered by YAMAMOTO Takashi and Joel Sing.

To avoid this, introduce a cpu_mcontext_validate() function and move all
sanity checks from cpu_setmcontext() there. Also untangle the netbsd32
compat mess slightly and add a cpu_mcontext32_validate() cousin there.

Add an exhaustive atf test case, based partly on code from Joel Sing.

Should finally fix the remaining open part of PR kern/43903.

Revision 1.22 / (download) - annotate - [select for diffs], Fri Apr 20 12:11:29 2012 UTC (13 months ago) by jruoho
Branch: MAIN
Changes since 1.21: +2 -1 lines
Diff to previous 1.21 (colored)

Add few unit tests for mlock(2), including a case for PR kern/44788.

Revision 1.21 / (download) - annotate - [select for diffs], Sat Mar 17 17:23:34 2012 UTC (14 months ago) by jruoho
Branch: MAIN
CVS Tags: yamt-pagecache-base4
Changes since 1.20: +2 -1 lines
Diff to previous 1.20 (colored)

Move the _lwp_ctl(2) preemption counter check to the right place.

Revision 1.20 / (download) - annotate - [select for diffs], Thu Nov 17 01:14:12 2011 UTC (18 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-6-base
Branch point for: netbsd-6
Changes since 1.19: +2 -1 lines
Diff to previous 1.19 (colored)

Add a test for PR/45618: Motoyuki OHMORI: kqueue EVFILT_TIMER with smaller
timeout value makes kernel busy or panic

Revision 1.19 / (download) - annotate - [select for diffs], Sat Nov 5 18:19:01 2011 UTC (18 months, 2 weeks ago) by jruoho
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2
Changes since 1.18: +4 -1 lines
Diff to previous 1.18 (colored)

Move connect(2), listen(2) and socketpair(2) tests to the right place.

Revision 1.18 / (download) - annotate - [select for diffs], Sat Nov 5 07:45:41 2011 UTC (18 months, 2 weeks ago) by jruoho
Branch: MAIN
Changes since 1.17: +5 -1 lines
Diff to previous 1.17 (colored)

Add 21 unit tests for the XSI message queues.

Revision 1.17 / (download) - annotate - [select for diffs], Mon Oct 31 15:41:31 2011 UTC (18 months, 3 weeks ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base
Branch point for: yamt-pagecache
Changes since 1.16: +2 -1 lines
Diff to previous 1.16 (colored)

Move all pipe2 tests to a separate file.

Revision 1.16 / (download) - annotate - [select for diffs], Sat Oct 15 07:00:48 2011 UTC (19 months, 1 week ago) by jruoho
Branch: MAIN
Changes since 1.15: +2 -1 lines
Diff to previous 1.15 (colored)

Move the sigaction(2) test to the right place.

Revision 1.15 / (download) - annotate - [select for diffs], Sat Oct 15 06:54:52 2011 UTC (19 months, 1 week ago) by jruoho
Branch: MAIN
Changes since 1.14: +2 -1 lines
Diff to previous 1.14 (colored)

Move the ucontext(2) test to the right place.

Revision 1.14 / (download) - annotate - [select for diffs], Sat Oct 15 06:50:52 2011 UTC (19 months, 1 week ago) by jruoho
Branch: MAIN
Changes since 1.13: +2 -1 lines
Diff to previous 1.13 (colored)

Move the writev(2) test to the right place.

Revision 1.13 / (download) - annotate - [select for diffs], Sat Oct 15 06:42:16 2011 UTC (19 months, 1 week ago) by jruoho
Branch: MAIN
Changes since 1.12: +2 -1 lines
Diff to previous 1.12 (colored)

Move the clock_gettime(2) timer test to the right place.

Revision 1.12 / (download) - annotate - [select for diffs], Sat Oct 15 06:26:34 2011 UTC (19 months, 1 week ago) by jruoho
Branch: MAIN
Changes since 1.11: +2 -1 lines
Diff to previous 1.11 (colored)

Move the mkdir(2) test to the right place.

Revision 1.11 / (download) - annotate - [select for diffs], Sat Oct 15 06:17:02 2011 UTC (19 months, 1 week ago) by jruoho
Branch: MAIN
Changes since 1.10: +2 -1 lines
Diff to previous 1.10 (colored)

Move the pipe(2) test to the right place.

Revision 1.10 / (download) - annotate - [select for diffs], Sat Oct 15 06:10:26 2011 UTC (19 months, 1 week ago) by jruoho
Branch: MAIN
Changes since 1.9: +3 -1 lines
Diff to previous 1.9 (colored)

Move the posix_fadvise(2) test to the right place.

Revision 1.9 / (download) - annotate - [select for diffs], Sat Sep 17 18:53:31 2011 UTC (20 months ago) by jruoho
Branch: MAIN
Changes since 1.8: +1 -2 lines
Diff to previous 1.8 (colored)

Remove ptrace(2) tests that are not yet ready but were accidentally
committed.

Revision 1.8 / (download) - annotate - [select for diffs], Sat Sep 17 18:52:21 2011 UTC (20 months ago) by jruoho
Branch: MAIN
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)

Simplify.

Revision 1.7 / (download) - annotate - [select for diffs], Mon Jul 18 23:16:11 2011 UTC (22 months ago) by jym
Branch: MAIN
Changes since 1.6: +5 -1 lines
Diff to previous 1.6 (colored)

Add a simple test case to check executable mapping rights for mprotect(2).

- provide an exec_prot_support() routine so $ARCH can indicate whether
it supports execution protection or not, and skip test accordingly.

- have a trivial 'return_one' shellcode to copy anywhere in a page, and
call it. The decision to keep the assembly solution is mine, reasons are
twofold:

   - all pure-C implementations cannot be controlled easily:
     bounds detection (beginning/end) of return_one is unpredictable,
     or requires the use of overkill solutions like libelf. Using
     dlsym(3) was a good proposal, however I can't use it to know the
     end address of the payload. It makes copying of the shellcode a bit
     more difficult: using a constant may be too small (code has not been
     entirely copied, and can lead to errors that can be erroneously
     detected as "test passed"), or too big (depending on where it is mapped
     in memory, copying past the end of the function may trigger SIGSEGV).

   - I have to ensure that the resulting assembly is the most compact
     possible, especially as it will be reused to test other parts of
     memory (stack, data, rodata, etc.).

Only i386 and amd64 are implemented so far. Others will come in due time.
FWIW, writing the exec_prot_support() callback and the return_one payload
should be enough. Writing callback requires good knowledge of the platform,
depending on chip revision, CPU, board, MMU... the protection level may vary.

Current files are put under lib/libc/arch/* and lib/libc/common/. Feel free to
move them around the tests/ tree. Keep in mind that the common/ and arch/ code
will be used outside of libc, so please do not hide them too deep in the tree.

I checked a few architectures via build.sh cross-compile, and will keep an
eye on buildbot for potential build breakage. Feel free to contact me in
case you see any, of course.

Revision 1.6 / (download) - annotate - [select for diffs], Thu Jul 7 19:29:58 2011 UTC (22 months, 2 weeks ago) by jruoho
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

Fix previous.

Revision 1.5 / (download) - annotate - [select for diffs], Thu Jul 7 07:06:21 2011 UTC (22 months, 2 weeks ago) by jruoho
Branch: MAIN
Changes since 1.4: +2 -3 lines
Diff to previous 1.4 (colored)

Remove 't_cerror' (this is tested by numerous individual tests).
Rename 't_context' to 't_getcontext' for consistency.

Revision 1.4 / (download) - annotate - [select for diffs], Thu Jul 7 06:57:53 2011 UTC (22 months, 2 weeks ago) by jruoho
Branch: MAIN
Changes since 1.3: +37 -1 lines
Diff to previous 1.3 (colored)

Add the syscall tests back. Couple of files and tests were also renamed for
consistency. All of these now mimic the libc structure.

Revision 1.3 / (download) - annotate - [select for diffs], Thu Jan 13 03:09:54 2011 UTC (2 years, 4 months ago) by pgoyette
Branch: MAIN
CVS Tags: cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)

Make sure we build all of thests, not just the last one (use += vs =)

Revision 1.2 / (download) - annotate - [select for diffs], Thu Jan 13 02:40:44 2011 UTC (2 years, 4 months ago) by pgoyette
Branch: MAIN
Changes since 1.1: +4 -1 lines
Diff to previous 1.1 (colored)

Continuing the (re)organization of the lib/libc atf regression tests

Revision 1.1 / (download) - annotate - [select for diffs], Mon Jan 10 04:57:56 2011 UTC (2 years, 4 months ago) by christos
Branch: MAIN

test for sigqueue

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>